Save This Page
Home » zk-src-3.5.1 » org » zkoss » zk » ui » impl » [javadoc | source]
org.zkoss.zk.ui.impl
public class: EventProcessingThreadImpl [javadoc | source]
java.lang.Object
   java.lang.Thread
      org.zkoss.zk.ui.impl.EventProcessingThreadImpl

All Implemented Interfaces:
    EventProcessingThread, Runnable

Thread to handle events. We need to handle events in a separate thread, because it might suspend (by calling org.zkoss.zk.ui.sys.UiEngine#wait ), such as waiting a modal dialog to complete.
Fields inherited from java.lang.Thread:
MIN_PRIORITY,  NORM_PRIORITY,  MAX_PRIORITY
Constructor:
 public EventProcessingThreadImpl() 
Method from org.zkoss.zk.ui.impl.EventProcessingThreadImpl Summary:
cease,   ceaseSilently,   doResume,   doSuspend,   getComponent,   getEvent,   getThreadNumber,   getThreadNumberInProcessing,   isCeased,   isIdle,   isSuspended,   newEventThreadSuspends,   processEvent,   run,   sendEvent,   toString
Methods from java.lang.Thread:
activeCount,   checkAccess,   countStackFrames,   currentThread,   destroy,   dumpStack,   enumerate,   getAllStackTraces,   getContextClassLoader,   getDefaultUncaughtExceptionHandler,   getId,   getName,   getPriority,   getStackTrace,   getState,   getThreadGroup,   getUncaughtExceptionHandler,   holdsLock,   interrupt,   interrupted,   isAlive,   isDaemon,   isInterrupted,   join,   join,   join,   resume,   run,   setContextClassLoader,   setDaemon,   setDefaultUncaughtExceptionHandler,   setName,   setPriority,   setUncaughtExceptionHandler,   sleep,   sleep,   start,   stop,   stop,   suspend,   toString,   yield
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.zkoss.zk.ui.impl.EventProcessingThreadImpl Detail:
 public  void cease(String cause) 
 public  void ceaseSilently(String cause) 
 public boolean doResume() throws InterruptedException 
    Resumes this thread and returns only if the execution (being suspended by #doSuspend ) completes.

    It executes in the main thread (i.e., the servlet thread).

 public static  void doSuspend(Object mutex) throws InterruptedException 
 public final Component getComponent() 
 public final Event getEvent() 
 public static final int getThreadNumber() 
    Returns the number of event threads.
 public static final int getThreadNumberInProcessing() 
    Returns the number of event threads in processing.
 public boolean isCeased() 
 public synchronized boolean isIdle() 
 public boolean isSuspended() 
 public  void newEventThreadSuspends(Object mutex) 
 public boolean processEvent(Desktop desktop,
    Component comp,
    Event event) 
 public  void run() 
 public  void sendEvent(Component comp,
    Event event) throws Exception 
 public String toString()