|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.cc.framework.taglib.forms.ForEachTag
Tag to iterate a collection of elements
| Nested Class Summary | |
protected class |
ForEachTag.FEIterator
Wrapper for Iterator classes |
protected class |
ForEachTag.FEMapIterator
Iterator for map collections |
protected class |
ForEachTag.FEOptionIterator
Iterator for OptionList data models |
protected static interface |
ForEachTag.ForEachIterator
Iterator for the collection the tag should iterate through |
| Field Summary | |
private java.lang.String |
indexId
The name for the index property |
protected ForEachTag.ForEachIterator |
iterator
Iterator of the elements of this collection, while we are actually running. |
private java.lang.String |
name
The bean name of the collection |
private java.lang.String |
property
The property name of the collection |
private HttpScope |
scope
The scope where the collection is stored |
private static long |
serialVersionUID
Serial Version UID |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
ForEachTag()
|
|
| Method Summary | |
protected ForEachTag.ForEachIterator |
createIterator()
|
int |
doAfterBody()
Make the next collection element available and loop, or finish the iterations if there are no more elements. |
int |
doEndTag()
|
int |
doStartTag()
|
java.lang.String |
getId()
|
java.lang.String |
getIndexId()
|
protected java.lang.Object |
lookupBean()
Retrieves the bean which holds the Display Data or Control Instance |
protected int |
selectNext()
This method selects the next element of the iteration |
void |
setIndexId(java.lang.String indexId)
Sets the index id |
void |
setName(java.lang.String name)
Specifies the name of the Java-Bean. |
void |
setProperty(java.lang.String property)
Sets the Property-Attribute |
void |
setScope(java.lang.String scope)
Sets the scope |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
| Field Detail |
private static final long serialVersionUID
protected ForEachTag.ForEachIterator iterator
private java.lang.String indexId
private java.lang.String name
private java.lang.String property
private HttpScope scope
| Constructor Detail |
public ForEachTag()
| Method Detail |
protected java.lang.Object lookupBean()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - Is thrown when the bean could not be found
protected ForEachTag.ForEachIterator createIterator()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public int doStartTag()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionTag.doStartTag()
public int doAfterBody()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionBodyTagSupport.doAfterBody()
public int doEndTag()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionTag.doEndTag()protected int selectNext()
EVAL_BODY_BUFFERED when there was a valid
iteration element and SKIP_BODY otherwise
public void setName(java.lang.String name)
throws javax.servlet.jsp.JspException
name - Name of the Bean
javax.servlet.jsp.JspException
public void setProperty(java.lang.String property)
throws javax.servlet.jsp.JspException
property - The Property-Attribute
javax.servlet.jsp.JspException
public void setIndexId(java.lang.String indexId)
throws javax.servlet.jsp.JspException
indexId - index id
javax.servlet.jsp.JspException
public void setScope(java.lang.String scope)
throws javax.servlet.jsp.JspException
scope - Scope
javax.servlet.jsp.JspException - If the Argument can't be converted to HttpScopepublic java.lang.String getId()
TagSupport.getId()public java.lang.String getIndexId()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||