info.magnolia.cms.taglibs
Class NewBar

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by 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

Field Summary
 
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
NewBar()
           
 
Method Summary
 void addButtonLeft(Button button)
           
 void addButtonRight(Button button)
           
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setAdminOnly(boolean adminOnly)
          Show only in admin instance, default to true.
 void setContentNodeCollectionName(String name)
          New paragraphs will be stored under this node's name.
 void setContentNodeName(String contentNodeName)
          A single new paragraph will be stored as a node with this name.
 void setNewLabel(String label)
          Text of the button, defaults to "New".
 void setParagraph(String list)
          Comma separated list of allowed paragraph types.
 
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
 

Constructor Detail

NewBar

public NewBar()
Method Detail

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.