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:
- BodyTag, ContainerReferrer, ContextProvider, FieldProvider, IterationTag, ListProvider, LoopTag, QueryContainerReferrer, Serializable, Tag, TagIdentifier
- public class FieldListTag
- extends FieldReferrerTag
- implements ListProvider, FieldProvider, QueryContainerReferrer
This class makes a tag which can list the fields of a NodeManager.
- Version:
- $Id: FieldListTag.java,v 1.53 2006/06/23 13:17:30 johannes Exp $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
findLoopOrQuery, findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getDefaultLocale, getEscapedValue, getId, getObject, getObjectConditional, getPageContext, getPageContextTag, getReferid, getString, getTaglibVersion, getTimeZone, getWriterValue, haveBody, setContext, setEscape, setId, setListdelimiter, setPageContext, setReferid, setWrite, setWriter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
add
protected Attribute add
retain
protected Attribute retain
remove
protected Attribute remove
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 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(String t)
throws JspTagException
- Throws:
JspTagException
setContainer
public void setContainer(String c)
throws JspTagException
- Description copied from interface:
ContainerReferrer
- If it should not use parent container
- Specified by:
setContainer in interface ContainerReferrer
- Throws:
JspTagException
setType
public void setType(String t)
throws JspTagException
- Throws:
JspTagException
getType
protected int getType()
throws JspTagException
- Throws:
JspTagException
setVartype
public void setVartype(String t)
- Overrides:
setVartype in class ContextReferrerTag
setJspvar
public void setJspvar(String j)
- Overrides:
setJspvar in class ContextReferrerTag
setFields
public void setFields(String f)
throws JspTagException
- Throws:
JspTagException
getFields
protected List getFields()
throws JspTagException
- Throws:
JspTagException
getNodeProvider
public NodeProvider getNodeProvider()
getNodeVar
public Node getNodeVar()
throws JspTagException
- Specified by:
getNodeVar in interface FieldProvider
- Throws:
JspTagException
setAdd
public void setAdd(String a)
throws JspTagException
- Throws:
JspTagException
setRetain
public void setRetain(String r)
throws JspTagException
- Throws:
JspTagException
setRemove
public void setRemove(String r)
throws JspTagException
- Throws:
JspTagException
setComparator
public void setComparator(String c)
throws JspTagException
- Throws:
JspTagException
getContextContainer
public ContextContainer getContextContainer()
- Specified by:
getContextContainer in interface ContextProvider
getNodeManagerFromQuery
protected NodeManager getNodeManagerFromQuery(String id,
boolean exception)
throws JspTagException
- Throws:
JspTagException- Since:
- MMBase-1.8.1
doStartTag
public int doStartTag()
throws JspTagException
- Specified by:
doStartTag in interface Tag
- Throws:
JspTagException
doAfterBody
public int doAfterBody()
throws JspTagException
- Specified by:
doAfterBody in interface IterationTag
- Throws:
JspTagException
doEndTag
public int doEndTag()
throws JspTagException
- Specified by:
doEndTag in interface Tag- Overrides:
doEndTag in class ContextReferrerTag
- Throws:
JspTagException
release
public void release()
- Description copied from class:
ContextReferrerTag
- Release all allocated resources.
- Specified by:
release in interface Tag- Overrides:
release in class ContextReferrerTag
doInitBody
public void doInitBody()
throws JspTagException
- Specified by:
doInitBody in interface BodyTag
- Throws:
JspTagException
getLoopStatus
public LoopTagStatus getLoopStatus()
- Specified by:
getLoopStatus in interface LoopTag
MMBase build 1.8.1.20060716