info.magnolia.cms.taglibs
Class MainBar
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
info.magnolia.cms.taglibs.MainBar
- All Implemented Interfaces:
- BarTag, Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class MainBar
- extends javax.servlet.jsp.tagext.TagSupport
- implements BarTag
Displays the mainBar, i.e. the bar that allows you to change the page properties and switch to preview mode. This
tag also add the CSS and JS links if not previously defined, but it's recommended to add the cms:links tag to the
header of the page. CSS links are not valid inside the HTML body tag.
- Version:
- $Revision: 41137 $ ($Author: gjoseph $)
- Author:
- Marcel Salathe, 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 |
MainBar
public MainBar()
setLabel
public void setLabel(String label)
- Label for the page properties button.
setParagraph
public void setParagraph(String s)
- Deprecated. use the dialog attribute instead
- Parameters:
s
- dialogName type
setDialog
public void setDialog(String dialog)
- Name of the dialog for the page properties. (as defined in config)
setAdminButtonVisible
public void setAdminButtonVisible(boolean adminButtonVisible)
- Set this to false if you don't want to show the AdminCentral button.
addButtonLeft
public void addButtonLeft(Button button)
- Specified by:
addButtonLeft
in interface BarTag
addButtonRight
public void addButtonRight(Button button)
- Specified by:
addButtonRight
in interface BarTag
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.