org.mmbase.bridge.jsp.taglib
Class FieldListTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.mmbase.bridge.jsp.taglib.ContextReferrerTag
              extended by org.mmbase.bridge.jsp.taglib.CloudReferrerTag
                  extended by org.mmbase.bridge.jsp.taglib.NodeReferrerTag
                      extended by org.mmbase.bridge.jsp.taglib.FieldReferrerTag
                          extended by org.mmbase.bridge.jsp.taglib.FieldListTag
All Implemented Interfaces:
Serializable, LoopTag, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, ContainerReferrer, QueryContainerReferrer, ContextProvider, FieldProvider, ListProvider, 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 41966 2010-04-20 09:40:17Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mmbase.bridge.jsp.taglib.ListProvider
ListProvider.ListProviderLoopTagStatus
 
Field Summary
protected  Attribute add
           
protected  Attribute remove
           
protected  Attribute retain
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.FieldReferrerTag
parentFieldId
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag
parentNodeId
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
cloudId
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, EVAL_BODY, helper, id, pageContextTag, referid, writerid
 
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.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
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
 
Constructor Summary
FieldListTag()
           
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 void doFinally()
           
 void doInitBody()
           
 int doStartTag()
           
 ContextContainer getContextContainer()
           
 Object getCurrent()
           
protected  List<String> getFieldNames()
           
 Field getFieldVar()
           
 int getIndex()
           
 int getIndexOffset()
           
 LoopTagStatus getLoopStatus()
           
protected  NodeManager getNodeManagerFromQuery(String id, boolean exception)
           
 NodeProvider getNodeProvider()
           
 Node getNodeVar()
           
protected  int getType()
           
 boolean isChanged()
           
 void remove()
          Removes the current item from the list.
 void setAdd(String a)
           
 void setComparator(String c)
           
 void setContainer(String c)
          If it should not use parent container
 void setFields(String f)
           
 void setJspvar(String j)
           
 void setNodetype(String t)
           
 void setRemove(String r)
           
 void setRetain(String r)
           
 void setType(String t)
           
 void setVarStatus(String s)
           
 void setVartype(String t)
           
 int size()
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.FieldReferrerTag
findFieldProvider, findFieldProvider, getField, setField
 
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.CloudReferrerTag
findCloudProvider, findCloudProvider, getCloudContext, getNode, getNodeOrNull, setCloud
 
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, setListdelimiter, setPageContext, setPageContextOnly, 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 org.mmbase.bridge.jsp.taglib.ContextProvider
getPageContext
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.TagIdentifier
getId
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, release, setPageContext, setParent
 

Field Detail

add

protected Attribute add

retain

protected Attribute retain

remove

protected Attribute remove
Constructor Detail

FieldListTag

public FieldListTag()
Method Detail

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 LoopTag
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

getFieldNames

protected List<String> getFieldNames()
                              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
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

setComparator

public void setComparator(String c)
                   throws JspTagException
Throws:
JspTagException

setVarStatus

public void setVarStatus(String s)
                  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 JspException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class NodeReferrerTag
Throws:
JspException

doAfterBody

public int doAfterBody()
                throws JspTagException
Specified by:
doAfterBody in interface IterationTag
Overrides:
doAfterBody in class BodyTagSupport
Throws:
JspTagException

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

doInitBody

public void doInitBody()
                throws JspTagException
Specified by:
doInitBody in interface BodyTag
Overrides:
doInitBody in class BodyTagSupport
Throws:
JspTagException

getLoopStatus

public LoopTagStatus getLoopStatus()
Specified by:
getLoopStatus in interface LoopTag


MMBase 2.0-SNAPSHOT - null