|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.web.servlet.dsp.action.AbstractAction org.zkoss.web.servlet.dsp.action.ForEach
public class ForEach
Iterators thru a collection/array of items.
Constructor Summary | |
---|---|
ForEach()
|
Method Summary | |
---|---|
int |
getBegin()
Returns the index of the item at which the iteration begins. |
int |
getEnd()
Returns the index of the item at which the iteration ends (inclusive). |
java.lang.Object |
getItems()
Returns the attribute items. |
java.lang.String |
getVar()
Returns the variable name used to iterate thru items. |
java.lang.String |
getVarStatus()
Returns the variable name used to hold the current iteration status, an instance of LoopStatus . |
boolean |
isTrim()
Returns whether to trim the result. |
void |
render(ActionContext ac,
boolean nested)
Processes the action and renders the output to ActionContext.getOut() . |
void |
setBegin(int beg)
Sets the index of the item at which the iteration begins. |
void |
setEnd(int end)
Sets the index of the item at which the iteration ends (inclusive). |
void |
setItems(java.lang.Object items)
Sets the attribute items. |
void |
setTrim(boolean trim)
Sets whether to trim the result. |
void |
setVar(java.lang.String var)
Sets the variable name used to iterate thru items. |
void |
setVarStatus(java.lang.String varStatus)
Sets the variable name used to hold the current iteration status. |
java.lang.String |
toString()
|
Methods inherited from class org.zkoss.web.servlet.dsp.action.AbstractAction |
---|
append, append, append, getIf, getUnless, isEffective, setIf, setUnless, toScope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ForEach()
Method Detail |
---|
public java.lang.String getVar()
public void setVar(java.lang.String var)
public java.lang.String getVarStatus()
LoopStatus
.
public void setVarStatus(java.lang.String varStatus)
public java.lang.Object getItems()
public void setItems(java.lang.Object items)
public int getBegin()
public void setBegin(int beg)
Default: 0.
public int getEnd()
public void setEnd(int end)
Default: Integer.MAX_VALUE.
public boolean isTrim()
public void setTrim(boolean trim)
Default: true.
public void render(ActionContext ac, boolean nested) throws DspException, java.io.IOException
Action
ActionContext.getOut()
.
nested
- whether there is any nested content.
DspException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |