public abstract class IteratorTag extends javax.servlet.jsp.tagext.BodyTagSupport implements javax.servlet.jsp.tagext.TryCatchFinally
Attributes
Modifier and Type | Field and Description |
---|---|
protected Iterator<?> |
m_iterator |
protected String |
m_pageName |
protected WikiContext |
m_wikiContext |
Constructor and Description |
---|
IteratorTag() |
Modifier and Type | Method and Description |
---|---|
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.
|
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected String m_pageName
protected Iterator<?> m_iterator
protected WikiContext m_wikiContext
public IteratorTag()
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.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
public int doAfterBody()
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
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.TryCatchFinally
arg0
- The Throwable that the tag threwThrowable
- I have no idea why this would throw anythingpublic void doFinally()
doFinally
in interface javax.servlet.jsp.tagext.TryCatchFinally
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.