org.mmbase.bridge.jsp.taglib
Class AbstractNodeProviderTag
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.AbstractNodeProviderTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, NodeProvider, java.io.Serializable, javax.servlet.jsp.tagext.Tag, TagIdentifier
- Direct Known Subclasses:
- AbstractNodeListTag, CreateNodeTag, NodeTag
- public abstract class AbstractNodeProviderTag
- extends CloudReferrerTag
- implements NodeProvider
A base class for tags which provide a node (And some fields). The
general attributes for a NodeProvider are
- id: The identifier. Used as a key for the Context. If this
attribute is missing, the Node variable will not be imported in the Context.
- jspvar: An identifier for a jsp variable available in the
body. If this attribute is missing, no jsp-variable will be
created.
- Author:
- Michiel Meeuwissen, Kees Jongenburger
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.String |
fields
|
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
findParentTag, findParentTag, getAttributeValue, getContextTag, getContextTag, getReferid, getReferIdValue, release, setContext, setPageContext, setReferid, stringSplitter, stringSplitter |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setParent |
fields
protected java.lang.String fields
AbstractNodeProviderTag
public AbstractNodeProviderTag()
setJspvar
public void setJspvar(java.lang.String jv)
getNodeVar
public Node getNodeVar()
- For use by children, they can find the currend 'node' belonging
to this tag.
- Specified by:
getNodeVar in interface NodeProvider
- Following copied from interface:
org.mmbase.bridge.jsp.taglib.NodeProvider
- Returns:
- the node contained in the tag
NOTE: we have decided to call this methid getNodeVar because
we use tag attributes with name "node" and type String
setNodeVar
protected void setNodeVar(Node node)
setFields
public void setFields(java.lang.String fields)
- Parameters:
fields - a comma separated list of fields of a node
doInitBody
public abstract void doInitBody()
throws javax.servlet.jsp.JspTagException
- Overrides:
doInitBody in class javax.servlet.jsp.tagext.BodyTagSupport
fillVars
protected void fillVars()
throws javax.servlet.jsp.JspTagException
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspTagException
- Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
MMBase 2001