Package org.zkoss.web.servlet.dsp.action
Class When
java.lang.Object
org.zkoss.web.servlet.dsp.action.AbstractAction
org.zkoss.web.servlet.dsp.action.When
- All Implemented Interfaces:
Action
Represents an alternative within a
Choose action.- Author:
- tomyeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetTest()Returns the test result.voidrender(ActionContext ac, boolean nested) Processes the action and renders the output toActionContext.getOut().voidsetTest(boolean cond) Sets the test result.toString()Methods inherited from class org.zkoss.web.servlet.dsp.action.AbstractAction
append, append, append, getIf, getUnless, isEffective, setIf, setUnless, toScope
-
Constructor Details
-
When
public When()
-
-
Method Details
-
getTest
public boolean getTest()Returns the test result. -
setTest
public void setTest(boolean cond) Sets the test result. -
render
Description copied from interface:ActionProcesses the action and renders the output toActionContext.getOut().nested- whether there is any nested content.- Throws:
DspExceptionIOException
-
toString
-