info.magnolia.cms.gui.control
Class FunctionBarItem

java.lang.Object
  extended by info.magnolia.cms.gui.control.ControlImpl
      extended by info.magnolia.cms.gui.control.ContextMenuItem
          extended by info.magnolia.cms.gui.control.FunctionBarItem
All Implemented Interfaces:
Control

public class FunctionBarItem
extends ContextMenuItem

Represents an item in the function bar.

Author:
higi

Field Summary
 
Fields inherited from class info.magnolia.cms.gui.control.ControlImpl
BUTTONSTATE_DISABLED, BUTTONSTATE_MOUSEDOWN, BUTTONSTATE_MOUSEOVER, BUTTONSTATE_NORMAL, BUTTONSTATE_PUSHED, BUTTONTYPE_CHECKBOX, BUTTONTYPE_PUSHBUTTON, BUTTONTYPE_RADIO, CSSCLASS_CONTROLBAR, CSSCLASS_CONTROLBARSMALL, CSSCLASS_CONTROLBUTTON, CSSCLASS_CONTROLBUTTONSMALL, ENCODING_BASE64, ENCODING_NO, ENCODING_UNIX, RICHEDIT_FCK, RICHEDIT_KUPU, RICHEDIT_NONE, VALUETYPE_MULTIPLE, VALUETYPE_SINGLE
 
Constructor Summary
FunctionBarItem(ContextMenuItem item)
          Copy constructor.
FunctionBarItem(java.lang.String name)
           
 
Method Summary
 java.lang.String getInactiveIcon()
          Add the _inactive suffix.
static FunctionBarItem getRefreshFunctionBarItem(Tree tree, Messages msgs, javax.servlet.http.HttpServletRequest request)
           
 boolean isActive()
           
 void setActive(boolean active)
           
 
Methods inherited from class info.magnolia.cms.gui.control.ContextMenuItem
addJavascriptCondition, getHtml, getIcon, getJavascriptCondition, getJavascriptConditions, getJavascriptMenuName, getOnclick, getRefreshMenuItem, setIcon, setJavascriptMenuName, setOnclick
 
Methods inherited from class info.magnolia.cms.gui.control.ControlImpl
escapeHTML, getCssClass, getCssStyles, getCssStyles, getCssStyles, getEncoding, getEvents, getHtmlCssClass, getHtmlCssStyles, getHtmlEvents, getHtmlId, getHtmlInter, getHtmlInter, getHtmlPost, getHtmlPost, getHtmlPre, getHtmlPre, getHtmlSaveInfo, getId, getIsRichEditValue, getLabel, getName, getNodeCollectionName, getNodeCollectionName, getNodeName, getNodeName, getPath, getRequest, getSaveInfo, getType, getValue, getValues, getValueType, getWebsiteNode, println, setCssClass, setCssStyles, setCssStyles, setEncoding, setEvent, setEvent, setEvents, setHtmlInter, setHtmlPost, setHtmlPre, setId, setIsRichEditValue, setLabel, setName, setNodeCollectionName, setNodeName, setPath, setRequest, setSaveInfo, setType, setType, setValue, setValues, setValueType, setWebsiteNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionBarItem

public FunctionBarItem(java.lang.String name)

FunctionBarItem

public FunctionBarItem(ContextMenuItem item)
Copy constructor. Used because the most buttons are redundant to it's context menu item

Parameters:
item -
Method Detail

getRefreshFunctionBarItem

public static FunctionBarItem getRefreshFunctionBarItem(Tree tree,
                                                        Messages msgs,
                                                        javax.servlet.http.HttpServletRequest request)

isActive

public boolean isActive()
Returns:
Returns the active.

setActive

public void setActive(boolean active)
Parameters:
active - The active to set.

getInactiveIcon

public java.lang.String getInactiveIcon()
Add the _inactive suffix.

Returns:
the proper name


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