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
public class When extends AbstractAction
Represents an alternative within aChooseaction.- Author:
- tomyeh
-
-
Constructor Summary
Constructors Constructor Description When()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetTest()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.java.lang.StringtoString()-
Methods inherited from class org.zkoss.web.servlet.dsp.action.AbstractAction
append, append, append, getIf, getUnless, isEffective, setIf, setUnless, toScope
-
-
-
-
Method Detail
-
getTest
public boolean getTest()
Returns the test result.
-
setTest
public void setTest(boolean cond)
Sets the test result.
-
render
public void render(ActionContext ac, boolean nested) throws DspException, java.io.IOException
Description copied from interface:ActionProcesses the action and renders the output toActionContext.getOut().nested- whether there is any nested content.- Throws:
DspExceptionjava.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-