Package org.zkoss.zk.ui.sys
Class ExecutionsCtrl
- java.lang.Object
-
- org.zkoss.zk.ui.Executions
-
- org.zkoss.zk.ui.sys.ExecutionsCtrl
-
public class ExecutionsCtrl extends Executions
Additional utilities forExecution.- Author:
- tomyeh
-
-
Field Summary
-
Fields inherited from class org.zkoss.zk.ui.Executions
_exec
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExecutionsCtrl()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExecutionCtrlgetCurrentCtrl()Returns the currentExecutionCtrl.static java.lang.StringgetPageRedrawControl(Execution exec)Returns the page redraw control.static voidsetCurrent(Execution exec)Sets the execution for the current thread.-
Methods inherited from class org.zkoss.zk.ui.Executions
activate, activate, createComponents, createComponents, createComponents, createComponents, createComponents, createComponentsDirectly, createComponentsDirectly, createComponentsDirectly, createComponentsDirectly, createComponentsDirectly, createComponentsDirectly, deactivate, encodeToURL, encodeURL, evaluate, evaluate, forward, getCurrent, getEvaluator, getEvaluator, getPageDefinition, getPageDefinitionDirectly, getPageDefinitionDirectly, getPageDefinitionDirectly, include, notify, notify, notifyAll, notifyAll, schedule, sendRedirect, wait
-
-
-
-
Method Detail
-
setCurrent
public static final void setCurrent(Execution exec)
Sets the execution for the current thread. Called only internally.Note: you have to clean up the current execution with try/finally:
setCurrent(exec); try { ... finally { setCurrent(null); }
-
getCurrentCtrl
public static final ExecutionCtrl getCurrentCtrl()
Returns the currentExecutionCtrl.
-
getPageRedrawControl
public static final java.lang.String getPageRedrawControl(Execution exec)
Returns the page redraw control. It first check if a request attribute calledAttributes.PAGE_REDRAW_CONTROLis defined. If not, it checks a request parameter calledzk.redrawCtrlis defined. If none of them is defined, null is returned.- Since:
- 5.0.0
-
-