| java.lang.Object org.zkoss.web.servlet.dsp.action.AbstractAction org.zkoss.web.servlet.dsp.action.ForEach
ForEach | public class ForEach extends AbstractAction (Code) | | Iterators thru a collection/array of items.
author: tomyeh |
Method Summary | |
public int | getBegin() Returns the index of the item at which the iteration begins. | public int | getEnd() Returns the index of the item at which the iteration ends (inclusive). | public Object | getItems() Returns the attribute items. | public String | getVar() Returns the variable name used to iterate thru items. | public String | getVarStatus() Returns the variable name used to hold the current iteration
status, an instance of
LoopStatus . | public boolean | isTrim() Returns whether to trim the result. | public void | render(ActionContext ac, boolean nested) | public void | setBegin(int beg) Sets the index of the item at which the iteration begins. | public void | setEnd(int end) Sets the index of the item at which the iteration ends (inclusive). | public void | setItems(Object items) Sets the attribute items. | public void | setTrim(boolean trim) Sets whether to trim the result. | public void | setVar(String var) Sets the variable name used to iterate thru items. | public void | setVarStatus(String varStatus) Sets the variable name used to hold the current iteration status. | public String | toString() |
getBegin | public int getBegin()(Code) | | Returns the index of the item at which the iteration begins.
|
getEnd | public int getEnd()(Code) | | Returns the index of the item at which the iteration ends (inclusive).
|
getItems | public Object getItems()(Code) | | Returns the attribute items.
|
getVar | public String getVar()(Code) | | Returns the variable name used to iterate thru items.
|
getVarStatus | public String getVarStatus()(Code) | | Returns the variable name used to hold the current iteration
status, an instance of
LoopStatus .
|
isTrim | public boolean isTrim()(Code) | | Returns whether to trim the result.
|
setBegin | public void setBegin(int beg)(Code) | | Sets the index of the item at which the iteration begins.
Default: 0.
|
setEnd | public void setEnd(int end)(Code) | | Sets the index of the item at which the iteration ends (inclusive).
Default: Integer.MAX_VALUE.
|
setItems | public void setItems(Object items)(Code) | | Sets the attribute items.
|
setTrim | public void setTrim(boolean trim)(Code) | | Sets whether to trim the result.
Default: true.
|
setVar | public void setVar(String var)(Code) | | Sets the variable name used to iterate thru items.
|
setVarStatus | public void setVarStatus(String varStatus)(Code) | | Sets the variable name used to hold the current iteration status.
|
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)
|
|
|