public interface EventProcessingThread
Modifier and Type | Method and Description |
---|---|
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.
|
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()
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
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.