org.mmbase.bridge.jsp.taglib.tree
Class AbstractTreeReferrerListTag

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.tree.TreeReferrerTag
                          extended by org.mmbase.bridge.jsp.taglib.tree.AbstractTreeReferrerListTag
All Implemented Interfaces:
Serializable, LoopTag, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, ContextProvider, ListProvider, TagIdentifier, DepthProvider
Direct Known Subclasses:
GrowTag, ShrinkTag

abstract class AbstractTreeReferrerListTag
extends TreeReferrerTag
implements ListProvider, DepthProvider

Since:
MMBase-1.7
Version:
$Id: AbstractTreeReferrerListTag.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mmbase.bridge.jsp.taglib.ListProvider
ListProvider.ListProviderLoopTagStatus
 
Field Summary
protected  ContextCollector collector
           
protected  int depth
           
protected  int index
           
protected  TreeProvider tree
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.tree.TreeReferrerTag
parentTreeId
 
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 org.mmbase.bridge.jsp.taglib.tree.DepthProvider
KEY
 
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
AbstractTreeReferrerListTag()
           
 
Method Summary
 int doEndTag()
           
protected  void doStartTagHelper()
           
 ContextContainer getContextContainer()
           
 Object getCurrent()
           
 int getDepth()
          Returns the 'size' of the current cluster node (the number of steps (minus the relation steps))
 int getIndex()
           
 int getIndexOffset()
           
 LoopTagStatus getLoopStatus()
           
 boolean isChanged()
           
 void remove()
          Removes the current item from the list.
 void setAdd(String c)
           
 void setRemove(String c)
           
 void setRetain(String c)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.tree.TreeReferrerTag
findDepthProvider, findTreeProvider, setTree
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag
doStartTag, 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, doFinally, 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, setReferid, setVartype, setWrite, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, 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.ListProvider
size
 
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
doStartTag, getParent, release, setPageContext, setParent
 

Field Detail

depth

protected int depth

index

protected int index

tree

protected TreeProvider tree

collector

protected ContextCollector collector
Constructor Detail

AbstractTreeReferrerListTag

AbstractTreeReferrerListTag()
Method Detail

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

getDepth

public int getDepth()
Description copied from interface: DepthProvider
Returns the 'size' of the current cluster node (the number of steps (minus the relation steps))

Specified by:
getDepth in interface DepthProvider

setAdd

public void setAdd(String c)
            throws JspTagException
Specified by:
setAdd in interface ListProvider
Throws:
JspTagException

setRetain

public void setRetain(String c)
               throws JspTagException
Specified by:
setRetain in interface ListProvider
Throws:
JspTagException

setRemove

public void setRemove(String c)
               throws JspTagException
Specified by:
setRemove in interface ListProvider
Throws:
JspTagException

getContextContainer

public ContextContainer getContextContainer()
                                     throws JspTagException
Specified by:
getContextContainer in interface ContextProvider
Throws:
JspTagException

doStartTagHelper

protected final void doStartTagHelper()
                               throws JspTagException
Throws:
JspTagException

doEndTag

public int doEndTag()
             throws JspTagException
Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class NodeReferrerTag
Throws:
JspTagException

getLoopStatus

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


MMBase 2.0-SNAPSHOT - null