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

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.containers.ListNodesContainerTag
                          extended by org.mmbase.bridge.jsp.taglib.containers.RelatedNodesContainerTag
                              extended by org.mmbase.bridge.jsp.taglib.tree.TreeContainerTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, CloudProvider, ContainerReferrer, NodeQueryContainer, QueryContainer, TagIdentifier

public class TreeContainerTag
extends RelatedNodesContainerTag
implements NodeQueryContainer, ContainerReferrer

Container cognate for TreeTag

Since:
MMBase-1.7.1
Version:
$Id: TreeContainerTag.java 35869 2009-06-09 14:02:59Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
protected  Attribute container
           
protected  Attribute maxDepth
           
protected  GrowingTreeList tree
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.containers.RelatedNodesContainerTag
cachePolicy, role
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.containers.ListNodesContainerTag
clone, element, markused, nodeManager, nodes, path, prevQuery, query, searchDirs
 
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 org.mmbase.bridge.jsp.taglib.containers.QueryContainer
KEY, SCOPE
 
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
 
Constructor Summary
TreeContainerTag()
           
 
Method Summary
(package private)  void addBranch(NodeManager nodeManager, String r, String sd)
           
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
 NodeQuery getNodeQuery()
          Returns the currently by the container defined query object.
 Query getQuery()
          Returns the currently by the container defined query object.
(package private) static NodeQuery getStartQuery(NodeReferrerTag thisTag, Attribute containerAttribute, Attribute nodeAttribute)
          Retrieves the starting query from environment.
 GrowingTreeList getTree()
           
 void setContainer(String c)
          If it should not use parent container
 void setJspvar(String jv)
           
 void setMaxdepth(String md)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.containers.RelatedNodesContainerTag
setCachepolicy, setRole
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.containers.ListNodesContainerTag
getCloudVar, getCurrent, setClone, setElement, setMarkused, setNodes, setPath, setSearchdirs, setType
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag
fillStandardParameters, findNode, findNodeProvider, findNodeProvider, getLocale, getNode, getNode, getNodeFromPageContext, initTag, 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, setListdelimiter, setPageContext, setReferid, setVartype, setWrite, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
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.CloudProvider
getCloudVar
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.TagIdentifier
getId
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

maxDepth

protected Attribute maxDepth

container

protected Attribute container

tree

protected GrowingTreeList tree
Constructor Detail

TreeContainerTag

public TreeContainerTag()
Method Detail

setMaxdepth

public void setMaxdepth(String md)
                 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

setJspvar

public void setJspvar(String jv)
Specified by:
setJspvar in interface QueryContainer
Overrides:
setJspvar in class ListNodesContainerTag

getTree

public GrowingTreeList getTree()

getQuery

public Query getQuery()
Description copied from interface: QueryContainer
Returns the currently by the container defined query object. Subtags can use this query object to change it or to use it.

Specified by:
getQuery in interface QueryContainer
Overrides:
getQuery in class ListNodesContainerTag

getNodeQuery

public NodeQuery getNodeQuery()
Description copied from interface: NodeQueryContainer
Returns the currently by the container defined query object. Subtags can use this query object to change it or to use it.

Specified by:
getNodeQuery in interface NodeQueryContainer
Overrides:
getNodeQuery in class ListNodesContainerTag

getStartQuery

static NodeQuery getStartQuery(NodeReferrerTag thisTag,
                               Attribute containerAttribute,
                               Attribute nodeAttribute)
                        throws JspTagException
Retrieves the starting query from environment. Static because also used by TreeTag itself.

Throws:
JspTagException

addBranch

void addBranch(NodeManager nodeManager,
               String r,
               String sd)

doStartTag

public int doStartTag()
               throws JspTagException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class RelatedNodesContainerTag
Throws:
JspTagException

doAfterBody

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

doEndTag

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


MMBase 2.0-SNAPSHOT - null