0

clean inside listitem inside listcell

asked 2011-05-12 21:58:47 +0800

xcom gravatar image xcom
564 3

updated 2011-05-12 22:01:14 +0800

hello:

I have in ListitemRender , creting for listbox so:

public class EspecificacionItemRenderer implements ListitemRenderer,Serializable{

  private Textbox text;
  private EspecificacionDispositivo especificacion;

  @override
  public void render(Listitem item,Object data) throws Exception{


   especificacion=(EspecificacionDispositivo)data;
   Listcell lc=null;
   lc=new Listcell(especificacion.getNombre());
   lc.setParent(item)

   text=new Textbox();
   text.stInplace(true);
   lc=new Listcell;
   text.addEventListener("onChange",new EventListener(){
       public void onEvent(Event event)throws Exception{
          especificacion.setValue(text.getValue)
   }

    text.setParent(lc)
   item.attribute("data",especificacion)
}

other function..........


}
 



how to clear all textboxes that are generated when aggregate model
to listobox ie I need to clean all the textbox values

eg
textbox.setValue (""), but for all generated in the listbox textbox

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2011-05-13 02:00:24 +0800

PeterKuo gravatar image PeterKuo
481 2

@xcom
You're lucky :)

Please refer to the selector smalltalk, it just fit your need.
http://books.zkoss.org/wiki/Small_Talks/2011/January/Envisage_ZK_6:_An_Annotation_Based_Composer_For_MVC

http://code.google.com/p/zk6/

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-05-12 21:58:47 +0800

Seen: 528 times

Last updated: May 13 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More