|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventProcessingThread
Represents an event processing thread.
Method Summary | |
---|---|
Component |
getComponent()
Returns the component being processed by this thread, or null if idle. |
Event |
getEvent()
Returns the event being processed by this thread, or null if idle. |
boolean |
isCeased()
Returns whether it is ceased. |
boolean |
isIdle()
Returns whether this thread is idle, i.e., not processing any event. |
boolean |
isSuspended()
Returns whether it is suspended. |
void |
sendEvent(Component comp,
Event event)
Sends the specified component and event and processes the event synchronously. |
Method Detail |
---|
boolean isCeased()
The event processing thread is ceased automatically.
If you want to cease it manually, you can invoke
DesktopCtrl.ceaseSuspendedThread(org.zkoss.zk.ui.sys.EventProcessingThread, java.lang.String)
.
An event processing thread is ceased if DesktopCtrl.ceaseSuspendedThread(org.zkoss.zk.ui.sys.EventProcessingThread, java.lang.String)
was called manually, or if it is dead (Thread.isAlive()
returns false).
That is, it returns true if it is going to die, or dead already.
boolean isSuspended()
DesktopCtrl.getSuspendedThreads()
,
DesktopCtrl.ceaseSuspendedThread(org.zkoss.zk.ui.sys.EventProcessingThread, java.lang.String)
boolean isIdle()
Event getEvent()
Component getComponent()
void sendEvent(Component comp, Event event) throws java.lang.Exception
Events.sendEvent(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event)
.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |