Save This Page
Home » zk-src-3.5.1 » org » zkoss » zk » ui » impl » [javadoc | source]
org.zkoss.zk.ui.impl
public class: EventProcessor [javadoc | source]
java.lang.Object
   org.zkoss.zk.ui.impl.EventProcessor
A utility class that simplify the implementation of org.zkoss.zk.ui.sys.EventProcessingThread .
Constructor:
 public EventProcessor(Desktop desktop,
    Component comp,
    Event event) 
    Parameters:
    comp - the component. Its desktop must be either null or the same as desktop.
Method from org.zkoss.zk.ui.impl.EventProcessor Summary:
cleanup,   getComponent,   getDesktop,   getEvent,   inEventListener,   inEventListener,   process,   setup,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.zkoss.zk.ui.impl.EventProcessor Detail:
 public  void cleanup() 
    Cleanup this process after processing the event by calling #process .

    Note: Don't call this method if the event process executes in the same thread.

 public final Component getComponent() 
    Returns the component.
 public final Desktop getDesktop() 
    Returns the desktop.
 public final Event getEvent() 
    Returns the event.
 public static final boolean inEventListener() 
    Returns whether the current thread is an event listener.
 static final  void inEventListener(boolean in) 
    Sets whether the current thread is an event listener. It needs to be called only if the event processing thread is disabled.

    It is used only internally.

 public  void process() throws Exception 
 public  void setup() 
 public String toString()