Package org.zkoss.web.servlet.dsp.action
Class Choose
java.lang.Object
org.zkoss.web.servlet.dsp.action.AbstractAction
org.zkoss.web.servlet.dsp.action.Choose
- All Implemented Interfaces:
Action
Provides the context for mutually exclusive conditional execution.
- Author:
- tomyeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisTrim()Returns whether to trim the result.voidrender(ActionContext ac, boolean nested) Processes the action and renders the output toActionContext.getOut().voidsetTrim(boolean trim) Sets whether to trim the result.toString()Methods inherited from class org.zkoss.web.servlet.dsp.action.AbstractAction
append, append, append, getIf, getUnless, isEffective, setIf, setUnless, toScope
-
Constructor Details
-
Choose
public Choose()
-
-
Method Details
-
isTrim
public boolean isTrim()Returns whether to trim the result. -
setTrim
public void setTrim(boolean trim) Sets whether to trim the result.Default: true.
-
render
Description copied from interface:ActionProcesses the action and renders the output toActionContext.getOut().nested- whether there is any nested content.- Throws:
DspExceptionIOException
-
toString
-