| java.lang.Object java.lang.Thread org.zkoss.zkex.zul.impl.OperationThread
OperationThread | public class OperationThread extends Thread (Code) | | This class is for model sharer developer only, you rarely need to use this class.
OperationThread has only one instance in each desktop, it store it-self in the desktop by setAttribute.
It create and monitor the
OperationQueue , if there are any operation in queue, it will consume it.
author: Dennis.Chen since: 3.0.0 |
destroyWith | public static void destroyWith(Desktop desktop)(Code) | | Terminate a
which is stored in desktop and clear it.
Parameters: desktop - the associated desktop |
getQueue | public static OperationQueue getQueue(Desktop desktop)(Code) | | Get the
OperationQueue of
,
It is check is there any
exist in desktop.
If no, create one ,start it and store in desktop, then return thread's operation queue.
If yes, return operation queue directly.
There is only one
in each desktop.
Parameters: desktop - the associated desktop a queue which associate to desktop |
isRunning | public boolean isRunning()(Code) | | Is this thread still running
true is thread still running |
terminate | public void terminate()(Code) | | Terminate this thread. thread will be stopped after last run trip.
|
|
|