org.mmbase.bridge.jsp.taglib
Class StringListTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.mmbase.bridge.jsp.taglib.ContextReferrerTag
org.mmbase.bridge.jsp.taglib.CloudReferrerTag
org.mmbase.bridge.jsp.taglib.NodeReferrerTag
org.mmbase.bridge.jsp.taglib.StringListTag
- All Implemented Interfaces:
- Serializable, LoopTag, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, ContextProvider, ListProvider, TagIdentifier, Writer
- Direct Known Subclasses:
- AliasListTag, QueryNextBatchesTag, QueryPreviousBatchesTag
public class StringListTag
- extends NodeReferrerTag
- implements ListProvider, Writer
This class makes a tag which can list strings.
- Since:
- MMBase-1.7
- Version:
- $Id: StringListTag.java 41966 2010-04-20 09:40:17Z michiel $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
| Methods inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag |
fillStandardParameters, findNode, findNodeProvider, findNodeProvider, getCloudVar, getLocale, getNode, getNode, getNodeFromPageContext, initTag, setElement, setNode |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
appendMoreParameters, doCatch, findLoopOrQuery, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getCurrentBlock, getDefaultLocale, getEscapedValue, getFormTag, getId, getLocaleFromContext, getObject, getObjectConditional, getPageContext, getPageContextTag, getQuery, getReferid, getString, getTaglibVersion, getThreadPageContext, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setListdelimiter, setPageContext, setPageContextOnly, setReferid, setVartype, setWrite, setWriter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
returnList
protected List<String> returnList
iterator
protected Iterator<String> iterator
currentItemIndex
protected int currentItemIndex
max
protected Attribute max
comparator
protected Attribute comparator
add
protected Attribute add
retain
protected Attribute retain
remove
protected Attribute remove
varStatus
protected Attribute varStatus
varStatusName
protected String varStatusName
StringListTag
public StringListTag()
size
public int size()
- Specified by:
size in interface ListProvider
- Returns:
- the size of the list
getIndex
public int getIndex()
- Specified by:
getIndex in interface ListProvider
- Returns:
- the index of the current item in a list
getIndexOffset
public int getIndexOffset()
- Specified by:
getIndexOffset in interface ListProvider
- Returns:
- The offset of the index (normally this will return 1)
isChanged
public boolean isChanged()
- Specified by:
isChanged in interface ListProvider
- Returns:
- a boolean indicating wether the field on which was
sorted is changed.
getCurrent
public Object getCurrent()
- Specified by:
getCurrent in interface LoopTag- Specified by:
getCurrent in interface ListProvider
- Returns:
- the current item in a list
remove
public void remove()
- Description copied from interface:
ListProvider
- Removes the current item from the list.
- Specified by:
remove in interface ListProvider
setMax
public void setMax(String m)
throws JspTagException
- Throws:
JspTagException
setAdd
public void setAdd(String a)
throws JspTagException
- Specified by:
setAdd in interface ListProvider
- Throws:
JspTagException
setRetain
public void setRetain(String r)
throws JspTagException
- Specified by:
setRetain in interface ListProvider
- Throws:
JspTagException
setRemove
public void setRemove(String r)
throws JspTagException
- Specified by:
setRemove in interface ListProvider
- Throws:
JspTagException
getMaxNumber
protected int getMaxNumber()
throws JspTagException
- Throws:
JspTagException
setComparator
public void setComparator(String c)
throws JspTagException
- Throws:
JspTagException
setVarStatus
public void setVarStatus(String s)
throws JspTagException
- Throws:
JspTagException- Since:
- MMBase-1.9
getContextContainer
public ContextContainer getContextContainer()
- Specified by:
getContextContainer in interface ContextProvider
getList
protected List<String> getList()
throws JspTagException
- Creates the actual list of strings.
- Throws:
JspTagException
truncateList
protected void truncateList()
throws JspTagException
- For use with referid
- Throws:
JspTagException
doStartTag
public int doStartTag()
throws JspException
- Specified by:
doStartTag in interface Tag- Overrides:
doStartTag in class NodeReferrerTag
- Throws:
JspException
doAfterBody
public int doAfterBody()
throws JspException
- Specified by:
doAfterBody in interface IterationTag- Overrides:
doAfterBody in class BodyTagSupport
- Throws:
JspException
doEndTag
public int doEndTag()
throws JspTagException
- Specified by:
doEndTag in interface Tag- Overrides:
doEndTag in class NodeReferrerTag
- Throws:
JspTagException
doFinally
public void doFinally()
- Specified by:
doFinally in interface TryCatchFinally- Overrides:
doFinally in class ContextReferrerTag
setNext
protected void setNext()
throws JspTagException
- Throws:
JspTagException
getLoopStatus
public LoopTagStatus getLoopStatus()
- Specified by:
getLoopStatus in interface LoopTag
MMBase 2.0-SNAPSHOT - null