org.mmbase.bridge.jsp.taglib
Class FieldListTag
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.FieldReferrerTag
org.mmbase.bridge.jsp.taglib.FieldListTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, ContextProvider, FieldProvider, javax.servlet.jsp.tagext.IterationTag, ListProvider, QueryContainerOrListProvider, java.io.Serializable, javax.servlet.jsp.tagext.Tag, TagIdentifier
- public class FieldListTag
- extends FieldReferrerTag
- implements ListProvider, FieldProvider
This class makes a tag which can list the fields of a NodeManager.
- Version:
- $Id: FieldListTag.java,v 1.40.2.4 2004/07/26 20:12:16 nico Exp $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getId, getLocale, getObject, getPageContext, getReferid, getString, getWriterValue, haveBody, release, setContext, setEscape, setId, setPageContext, setReferid, setWrite, setWriter |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getParent, getValue, getValues, removeValue, 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, setParent |
FieldListTag
public FieldListTag()
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)
getCurrent
public java.lang.Object getCurrent()
- Specified by:
getCurrent in interface ListProvider
- Returns:
- the current item in a list
isChanged
public boolean isChanged()
- Specified by:
isChanged in interface ListProvider
- Returns:
- a boolean indicating wether the field on which was
sorted is changed.
remove
public void remove()
- Description copied from interface:
ListProvider
- Removes the current item from the list.
- Specified by:
remove in interface ListProvider
getFieldVar
public Field getFieldVar()
- Specified by:
getFieldVar in interface FieldProvider
- Returns:
- the field contained in the tag
setNodetype
public void setNodetype(java.lang.String t)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
setType
public void setType(java.lang.String t)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
getType
protected int getType()
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
setVartype
public void setVartype(java.lang.String t)
- Overrides:
setVartype in class ContextReferrerTag
setJspvar
public void setJspvar(java.lang.String j)
- Overrides:
setJspvar in class ContextReferrerTag
setFields
public void setFields(java.lang.String f)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
getFields
protected java.util.List getFields()
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
getNodeProvider
public NodeProvider getNodeProvider()
getNodeVar
public Node getNodeVar()
throws javax.servlet.jsp.JspTagException
- Specified by:
getNodeVar in interface FieldProvider
- Throws:
javax.servlet.jsp.JspTagException
setModified
public void setModified()
- Specified by:
setModified in interface FieldProvider
setComparator
public void setComparator(java.lang.String c)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
getContextContainer
public ContextContainer getContextContainer()
- Specified by:
getContextContainer in interface ContextProvider
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspTagException
- Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
- Throws:
javax.servlet.jsp.JspTagException
doAfterBody
public int doAfterBody()
throws javax.servlet.jsp.JspTagException
- Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
- Throws:
javax.servlet.jsp.JspTagException
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspTagException
- Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doEndTag in class ContextReferrerTag
- Throws:
javax.servlet.jsp.JspTagException
doInitBody
public void doInitBody()
throws javax.servlet.jsp.JspTagException
- Specified by:
doInitBody in interface javax.servlet.jsp.tagext.BodyTag
- Throws:
javax.servlet.jsp.JspTagException
MMBase build 1.7.1.20041002