|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.japano.PageNode org.japano.pagenode.jstl.core.ForEach
public class ForEach
Foreach implementation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.japano.PageNode |
---|
PageNode.Output |
Field Summary | |
---|---|
protected int |
begin
Holds value of property begin. |
protected boolean |
beginSet
|
protected int |
count
|
protected java.lang.Object |
current
|
protected java.lang.String |
delimiter
|
protected int |
end
Holds value of property end. |
protected int |
endOfRun
|
protected boolean |
endSet
|
protected boolean |
first
|
java.lang.Integer |
iBegin
|
java.lang.Integer |
iEnd
|
protected int |
index
|
java.lang.Integer |
iStep
|
protected java.lang.Object |
items
Holds value of property items. |
protected boolean |
itemsSet
|
protected boolean |
last
|
protected int |
step
Holds value of property step. |
protected java.lang.String |
var
Holds value of property var. |
protected java.lang.String |
varStatus
Holds value of property varStatus. |
Fields inherited from class org.japano.PageNode |
---|
children, context, EMPTY, nodeId, parent |
Constructor Summary | |
---|---|
ForEach()
|
Method Summary | |
---|---|
void |
generate(Buffer out)
Generates this node The base implementation just calls PageNode.generateChildren(Buffer) |
void |
generateChildren(Buffer out)
Dumps all child nodes of this node. |
java.lang.Integer |
getBegin()
Returns the begin value. |
int |
getCount()
Returns the current count. |
java.lang.Object |
getCurrent()
Returns the current object. |
java.lang.Integer |
getEnd()
Returns the end value. |
int |
getIndex()
Returns the current index. |
java.lang.Integer |
getStep()
Returns the step value. |
boolean |
isFirst()
Returns true if the current iteration is the first. |
boolean |
isLast()
Returns true if the current iteration is the last. |
protected void |
iterate(java.util.Iterator iterator,
Buffer out)
|
void |
setBegin(int begin)
If items specified: Iteration begins at the item located at the specified index. |
void |
setEnd(int end)
If items specified: Iteration ends at the item located at the specified index (inclusive). |
void |
setItems(java.lang.Object items)
Collection of items to iterate over. |
void |
setStep(int step)
Iteration will only process every step items of the collection, starting with the first one. |
void |
setVar(java.lang.String var)
Name of the exported scoped variable for the current item of the iteration. |
void |
setVarStatus(java.lang.String varStatus)
Name of the exported scoped variable for the status of the iteration. |
Methods inherited from class org.japano.PageNode |
---|
findChildren, findParent, findRootNode, getChildren, getContext, getNodeId, getParent, init, recInit, release, setChildren, setContext, setNodeId, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean beginSet
protected boolean endSet
protected boolean first
protected boolean last
public java.lang.Integer iStep
public java.lang.Integer iBegin
public java.lang.Integer iEnd
protected java.lang.Object items
protected boolean itemsSet
protected int begin
protected int end
protected int step
protected java.lang.String var
protected java.lang.String varStatus
protected java.lang.String delimiter
protected int count
protected int index
protected java.lang.Object current
protected int endOfRun
Constructor Detail |
---|
public ForEach()
Method Detail |
---|
public void setItems(java.lang.Object items)
public void setBegin(int begin)
public void setEnd(int end)
public void setStep(int step)
public void setVar(java.lang.String var)
public void setVarStatus(java.lang.String varStatus)
public void generate(Buffer out)
PageNode
PageNode.generateChildren(Buffer)
generate
in class PageNode
protected void iterate(java.util.Iterator iterator, Buffer out)
public void generateChildren(Buffer out)
PageNode
generateChildren
in class PageNode
public java.lang.Object getCurrent()
getCurrent
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
public int getIndex()
getIndex
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
public int getCount()
getCount
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
public java.lang.Integer getStep()
getStep
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
public boolean isLast()
true
if the current iteration is the last.
isLast
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
public boolean isFirst()
true
if the current iteration is the first.
isFirst
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
public java.lang.Integer getEnd()
getEnd
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
public java.lang.Integer getBegin()
getBegin
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |