info.magnolia.cms.taglibs
Class Set

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by info.magnolia.cms.taglibs.BaseContentTag
          extended by info.magnolia.cms.taglibs.Set
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class Set
extends BaseContentTag

Set contentNode in resource.

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
Sameer Charles
See Also:
Serialized Form

Field Summary
static String SCOPE_CURRENT
           
static String SCOPE_GLOBAL
           
static String SCOPE_LOCAL
           
static String SCOPE_PAGE
           
static String SCOPE_PARAGRAPH
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
Set()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 String getScope()
           
 boolean isForBodyOnly()
           
 void release()
           
protected  void saveCurrentNode()
           
 void setContainer(Content contentNode)
          Deprecated. use the contentNode attribute
 void setContainerName(String name)
          Deprecated. use the contentNodeName attribute
 void setForBodyOnly(boolean forBodyOnly)
          If true the node is unset after the end tag.
protected  void setNode(Content node)
           
 void setNodeDataName(String name)
          Set the node data name, e.g.
 void setScope(String scope)
          Attention this is not the jstl scope but the magnolia scope! Values are local: same as paragraph paragraph: the current paragraph global: a globally use node (default value) page: same as page current: the current page
 
Methods inherited from class info.magnolia.cms.taglibs.BaseContentTag
getContentNode, getContentNodeCollectionName, getContentNodeName, getCurrentPage, getFirstMatchingNode, getFirtMatchingNode, getNodeDataName, getPath, getRepository, getUuid, isActpage, resolveNode, setActpage, setContentNode, setContentNodeCollectionName, setContentNodeName, setInherit, setPath, setRepository, setUuid
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCOPE_GLOBAL

public static final String SCOPE_GLOBAL
See Also:
Constant Field Values

SCOPE_LOCAL

public static final String SCOPE_LOCAL
See Also:
Constant Field Values

SCOPE_PARAGRAPH

public static final String SCOPE_PARAGRAPH
See Also:
Constant Field Values

SCOPE_CURRENT

public static final String SCOPE_CURRENT
See Also:
Constant Field Values

SCOPE_PAGE

public static final String SCOPE_PAGE
See Also:
Constant Field Values
Constructor Detail

Set

public Set()
Method Detail

setContainer

public void setContainer(Content contentNode)
Deprecated. use the contentNode attribute


setContainerName

public void setContainerName(String name)
Deprecated. use the contentNodeName attribute


setNodeDataName

public void setNodeDataName(String name)
Description copied from class: BaseContentTag
Set the node data name, e.g. "mainText".

Overrides:
setNodeDataName in class BaseContentTag

doStartTag

public int doStartTag()
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport

saveCurrentNode

protected void saveCurrentNode()

setNode

protected void setNode(Content node)

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class BaseContentTag

getScope

public String getScope()

setScope

public void setScope(String scope)
Attention this is not the jstl scope but the magnolia scope! Values are


isForBodyOnly

public boolean isForBodyOnly()

setForBodyOnly

public void setForBodyOnly(boolean forBodyOnly)
If true the node is unset after the end tag. Default is false.



Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.