Package org.zkoss.zkex.zul.impl
Interface Operation
-
public interface OperationThis interface is for model sharer developer only, you rarely need to use this interface.
Available in ZK PE and ZK EE.
A model sharer will add Operation to
OperationQueue, thenOperationThreadwhich monitor this queue will consume operations andexecute(Desktop)it.
The methodfailToExecute(Desktop)will be invoked when- Any Exception occurs when execute
- Thread is terminate by
OperationThread.terminate() - Desktop is no longer available
- Since:
- 3.0.0
- Author:
- Dennis.Chen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(Desktop desktop)Execute the operation.
TheOperationThreadwill activate desktop first, then call this method, and then call deactivate.voidfailToExecute(Desktop desktop)Notify when 1.any Exception occurs when execute 2.thread is terminate byOperationThread.terminate()3.desktop is not longer available
-
-
-
Method Detail
-
execute
void execute(Desktop desktop)
Execute the operation.
TheOperationThreadwill activate desktop first, then call this method, and then call deactivate.- Parameters:
desktop- the desktop whichOperationThreadassociate to.
-
failToExecute
void failToExecute(Desktop desktop)
Notify when 1.any Exception occurs when execute 2.thread is terminate byOperationThread.terminate()3.desktop is not longer available- Parameters:
desktop- the Desktop whichOperationThreadassociate to.
-
-