|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
jodd.servlet.tag.IteratorTag
public class IteratorTag
Iterator tag for iterating collections.
IteratorStatus| Field Summary | |
|---|---|
protected int |
count
|
protected int |
from
|
protected java.lang.Object |
items
|
protected IteratorStatus |
iteratorStatus
|
protected int |
modulus
|
protected java.lang.String |
scope
|
protected java.lang.String |
status
|
protected java.lang.String |
var
|
| Constructor Summary | |
|---|---|
IteratorTag()
|
|
| Method Summary | |
|---|---|
protected int |
calculateTo(int from,
int count,
int size)
Calculates 'TO'. |
void |
doTag()
|
protected void |
iterateArray(java.lang.Object[] array,
int from,
int count,
javax.servlet.jsp.PageContext pageContext)
Iterates arrays. |
protected void |
iterateCollection(java.util.Collection collection,
int from,
int count,
javax.servlet.jsp.PageContext pageContext)
Iterates collection. |
void |
setCount(int count)
Sets count as total number of items to iterate. |
void |
setFrom(int from)
Sets starting index. |
void |
setItems(java.lang.Object items)
Specifies item collection. |
void |
setModulus(int modulus)
Specifies modulus value for the iterator status |
void |
setScope(java.lang.String scope)
Sets scope for all variables. |
void |
setStatus(java.lang.String status)
Specifies status variable name. |
void |
setVar(java.lang.String var)
Specifies variable name that will be used for item during iteration. |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
|---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Object items
protected java.lang.String var
protected java.lang.String status
protected int modulus
protected java.lang.String scope
protected int from
protected int count
protected IteratorStatus iteratorStatus
| Constructor Detail |
|---|
public IteratorTag()
| Method Detail |
|---|
public void setItems(java.lang.Object items)
public void setVar(java.lang.String var)
public void setStatus(java.lang.String status)
public void setModulus(int modulus)
public void setScope(java.lang.String scope)
public void setFrom(int from)
public void setCount(int count)
public void doTag()
throws javax.servlet.jsp.JspException
doTag in interface javax.servlet.jsp.tagext.SimpleTagdoTag in class javax.servlet.jsp.tagext.SimpleTagSupportjavax.servlet.jsp.JspException
protected int calculateTo(int from,
int count,
int size)
protected void iterateCollection(java.util.Collection collection,
int from,
int count,
javax.servlet.jsp.PageContext pageContext)
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
protected void iterateArray(java.lang.Object[] array,
int from,
int count,
javax.servlet.jsp.PageContext pageContext)
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||