|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.impl.EventProcessor
public class EventProcessor
A utility class that simplify the implementation of
EventProcessingThread
.
Constructor Summary | |
---|---|
EventProcessor(Desktop desktop,
Component comp,
Event event)
|
Method Summary | |
---|---|
void |
cleanup()
Cleanup this process after processing the event by calling process() . |
Component |
getComponent()
Returns the component. |
Desktop |
getDesktop()
Returns the desktop. |
Event |
getEvent()
Returns the event. |
static boolean |
inEventListener()
Returns whether the current thread is an event listener. |
void |
process()
Process the event. |
void |
setup()
Setup this processor before processing the event by calling process() . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EventProcessor(Desktop desktop, Component comp, Event event)
comp
- the component. Its desktop must be either null
or the same as desktop.Method Detail |
---|
public static final boolean inEventListener()
public final Desktop getDesktop()
public final Event getEvent()
public final Component getComponent()
public void process() throws java.lang.Exception
This method is to implement
EventProcessingThread
.
See also Configuration.isEventThreadEnabled()
.
java.lang.Exception
public void setup()
process()
.
Note: it doesn't invoke ExecutionCtrl.onActivate()
public void cleanup()
process()
.
Note: Don't call this method if the event process executes in the same thread.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |