Package org.zkoss.zk.ui.impl
Class EventProcessor
java.lang.Object
org.zkoss.zk.ui.impl.EventProcessor
A utility class that simplify the implementation of
EventProcessingThread.- Author:
- tomyeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Cleanup this process after processing the event by callingprocess().final ComponentReturns the component.final DesktopReturns the desktop.final EventgetEvent()Returns the event.static final booleanReturns whether the current thread is an event listener.voidprocess()Process the event.voidsetup()Setup this processor before processing the event by callingprocess().toString()
-
Constructor Details
-
EventProcessor
- Parameters:
comp- the component. Its desktop must be either null or the same as desktop.
-
-
Method Details
-
inEventListener
public static final boolean inEventListener()Returns whether the current thread is an event listener. -
getDesktop
Returns the desktop. -
getEvent
Returns the event. -
getComponent
Returns the component. -
process
Process the event. Note: it doesn't invoke EventThreadInit and EventThreadCleanup.This method is to implement
EventProcessingThread. See alsoConfiguration.isEventThreadEnabled().- Throws:
Exception
-
setup
public void setup()Setup this processor before processing the event by callingprocess().Note: it doesn't invoke
ExecutionCtrl.onActivate() -
cleanup
public void cleanup()Cleanup this process after processing the event by callingprocess().Note: Don't call this method if the event process executes in the same thread.
-
toString
-