|
||||||||||
| 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
org.apache.wiki.tags.IteratorTag
public abstract class IteratorTag

Iterates through tags.
Attributes
| Field Summary | |
|---|---|
protected Iterator |
m_iterator
|
protected String |
m_pageName
|
protected WikiContext |
m_wikiContext
|
| 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 | |
|---|---|
IteratorTag()
|
|
| Method Summary | |
|---|---|
void |
clearList()
Clears the iterator away. |
int |
doAfterBody()
|
void |
doCatch(Throwable arg0)
In case your tag throws an exception at any point, you can override this method and implement a custom exception handler. |
int |
doEndTag()
|
void |
doFinally()
Executed after the tag has been finished. |
int |
doStartTag()
|
void |
resetIterator()
Override this method to reset your own iterator. |
void |
setList(Collection arg)
Sets the collection that is used to form the iteration. |
void |
setList(Object[] arg)
Sets the collection list, but using an array. |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
findAncestorWithClass, getId, 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 |
|---|
protected String m_pageName
protected Iterator m_iterator
protected WikiContext m_wikiContext
| Constructor Detail |
|---|
public IteratorTag()
| Method Detail |
|---|
public void setList(Collection arg)
arg - A Collection which will be iterated.public void setList(Object[] arg)
arg - An array of objects which will be iterated.public void clearList()
public void resetIterator()
public int doStartTag()
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportpublic int doEndTag()
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportpublic int doAfterBody()
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
public void doCatch(Throwable arg0)
throws Throwable
By default, this handler does nothing.
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinallyarg0 - The Throwable that the tag threw
Throwable - I have no idea why this would throw anythingpublic void doFinally()
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||