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

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.tree.LeafConstraintsTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, CloudProvider, ContainerReferrer, NodeQueryContainer, QueryContainer, QueryContainerReferrer, TagIdentifier

public class LeafConstraintsTag
extends ContextReferrerTag
implements NodeQueryContainer, QueryContainerReferrer

Sub-tag of tree container. Is itself a Query container. It makes it possible to set the 'search constraints on a tree'. Search constraints do not change the actual tree, but only the 'leaves'. So, it is kind of constraint only valid on the leaves. This makes it possible to easily search through a tree of objects.

Since:
MMBase-1.8
Version:
$Id: LeafConstraintsTag.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
protected  GrowingTreeList tree
           
 
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
LeafConstraintsTag()
           
 
Method Summary
 int doAfterBody()
           
 int doStartTag()
           
 Cloud getCloudVar()
           
 NodeQuery getNodeQuery()
          Returns the currently by the container defined query object.
 Query getQuery()
          Returns the currently by the container defined query object.
 void setContainer(String c)
          If it should not use parent container
 void setOn(String c)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
appendMoreParameters, doCatch, doEndTag, doFinally, fillStandardParameters, findLoopOrQuery, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getCurrentBlock, getDefaultLocale, getEscapedValue, getFormTag, getId, getLocale, 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
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.containers.QueryContainer
setJspvar
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.TagIdentifier
getId
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

tree

protected GrowingTreeList tree
Constructor Detail

LeafConstraintsTag

public LeafConstraintsTag()
Method Detail

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

setOn

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

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

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

getCloudVar

public Cloud getCloudVar()
                  throws JspTagException
Specified by:
getCloudVar in interface CloudProvider
Returns:
the cloud contained in the tag
Throws:
JspTagException

doStartTag

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

doAfterBody

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


MMBase 2.0-SNAPSHOT - null