Package org.zkoss.zk.ui.sys
Interface EventProcessingThread
- All Known Implementing Classes:
EventProcessingThreadImpl
public interface EventProcessingThread
Represents an event processing thread.
- Author:
- tomyeh
-
Method Summary
Modifier and TypeMethodDescriptionReturns the component being processed by this thread, or null if idle.getEvent()Returns the event being processed by this thread, or null if idle.booleanisCeased()Returns whether it is ceased.booleanisIdle()Returns whether this thread is idle, i.e., not processing any event.booleanReturns whether it is suspended.voidSends the specified component and event and processes the event synchronously.
-
Method Details
-
isCeased
boolean isCeased()Returns whether it is ceased.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. -
isSuspended
boolean isSuspended()Returns whether it is suspended. -
isIdle
boolean isIdle()Returns whether this thread is idle, i.e., not processing any event. -
getEvent
Event getEvent()Returns the event being processed by this thread, or null if idle. -
getComponent
Component getComponent()Returns the component being processed by this thread, or null if idle. -
sendEvent
Sends the specified component and event and processes the event synchronously. Used to implementsEvents.sendEvent(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event).- Throws:
Exception- Since:
- 3.0.2
-