info.magnolia.cms.taglibs
Class ButtonTag

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

public class ButtonTag
extends javax.servlet.jsp.tagext.TagSupport

Adds a button to a parent bar. Must be nested into a mainBar or newBar to work.

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
fgiust
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
ButtonTag()
           
 
Method Summary
 int doEndTag()
           
 void release()
           
 void setDialogName(String dialogName)
          Name of the dialog to open.
 void setLabel(String label)
          Label for this button.
 void setPosition(String position)
          Where to add this button.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, 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

ButtonTag

public ButtonTag()
Method Detail

setDialogName

public void setDialogName(String dialogName)
Name of the dialog to open.


setLabel

public void setLabel(String label)
Label for this button.


setPosition

public void setPosition(String position)
Where to add this button. Can be "left" or "right". Default is "left".


doEndTag

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

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.