| java.lang.Object org.zkoss.web.servlet.dsp.action.AbstractAction org.zkoss.web.servlet.dsp.action.If
If | public class If extends AbstractAction (Code) | | Tests whether an condition is true and render the child only
if the condition is true.
author: tomyeh |
Method Summary | |
public boolean | getTest() Returns the test result. | public boolean | isTrim() Returns whether to trim the result. | public void | render(ActionContext ac, boolean nested) | public void | setTest(boolean cond) Sets the test result. | public void | setTrim(boolean trim) Sets whether to trim the result. | public String | toString() |
getTest | public boolean getTest()(Code) | | Returns the test result.
|
isTrim | public boolean isTrim()(Code) | | Returns whether to trim the result.
Default: true.
|
setTest | public void setTest(boolean cond)(Code) | | Sets the test result.
|
setTrim | public void setTrim(boolean trim)(Code) | | Sets whether to trim the result.
|
Fields inherited from org.zkoss.web.servlet.dsp.action.AbstractAction | final protected static int NULL_INT(Code)(Java Doc) final protected static short NULL_SHORT(Code)(Java Doc)
|
Methods inherited from org.zkoss.web.servlet.dsp.action.AbstractAction | final protected static void append(StringBuffer sb, String attrName, String attrValue)(Code)(Java Doc) protected static void append(StringBuffer sb, String attrName, boolean avail)(Code)(Java Doc) final protected static void append(StringBuffer sb, String attrName, int val)(Code)(Java Doc) public boolean getIf()(Code)(Java Doc) public boolean getUnless()(Code)(Java Doc) public boolean isEffective()(Code)(Java Doc) final protected static void put(Map params, String attrName, String attrValue)(Code)(Java Doc) final protected static void put(Map params, String attrName, boolean avail)(Code)(Java Doc) final protected static void put(Map params, String attrName, int val)(Code)(Java Doc) final protected static void put(Map params, String attrName, Object attrValue)(Code)(Java Doc) public void setIf(boolean ifcond)(Code)(Java Doc) public void setUnless(boolean unless)(Code)(Java Doc) final protected static int toScope(String scope)(Code)(Java Doc)
|
|
|