info.magnolia.cms.taglibs
Class NewBar
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
info.magnolia.cms.taglibs.NewBar
- All Implemented Interfaces:
- BarTag, Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class NewBar
- extends javax.servlet.jsp.tagext.TagSupport
- implements BarTag
Displays a newBar that allows you to create new paragraphs.
- Version:
- $Revision: 41137 $ ($Author: gjoseph $)
- Author:
- Sameer Charles
- See Also:
- Serialized Form
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 |
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 |
NewBar
public NewBar()
setNewLabel
public void setNewLabel(String label)
- Text of the button, defaults to "New".
setAdminOnly
public void setAdminOnly(boolean adminOnly)
- Show only in admin instance, default to true.
setContentNodeName
public void setContentNodeName(String contentNodeName)
- A single new paragraph will be stored as a node with this name.
- Parameters:
contentNodeName
- name of the node
setContentNodeCollectionName
public void setContentNodeCollectionName(String name)
- New paragraphs will be stored under this node's name. You will need the name for later retrieval of contents.
- Parameters:
name
- container list name
setParagraph
public void setParagraph(String list)
- Comma separated list of allowed paragraph types.
addButtonLeft
public void addButtonLeft(Button button)
- Specified by:
addButtonLeft
in interface BarTag
- See Also:
BarTag.addButtonLeft(info.magnolia.cms.gui.control.Button)
addButtonRight
public void addButtonRight(Button button)
- Specified by:
addButtonRight
in interface BarTag
- See Also:
BarTag.addButtonRight(info.magnolia.cms.gui.control.Button)
doStartTag
public int doStartTag()
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
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 javax.servlet.jsp.tagext.TagSupport
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.