info.magnolia.cms.gui.control
Class FunctionBar
java.lang.Object
info.magnolia.cms.gui.control.ControlImpl
info.magnolia.cms.gui.control.ContextMenu
info.magnolia.cms.gui.control.FunctionBar
- All Implemented Interfaces:
- Control
public class FunctionBar
- extends ContextMenu
The bar containing function buttons and the search field.
- Author:
- higi
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 |
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 |
FunctionBar
public FunctionBar(String menuName)
- Parameters:
menuName
- the name of this menu (used in js)
getHtml
public String getHtml()
- Render the html code using the freemarker template
- Specified by:
getHtml
in interface Control
- Overrides:
getHtml
in class ContextMenu
- Returns:
- html code
- See Also:
Control.getHtml()
getJavascript
public String getJavascript()
- Render the javascript code to initialize it
- Overrides:
getJavascript
in class ContextMenu
hasMenuItems
public boolean hasMenuItems()
- Returns:
- true if the functionBar has one or more functionBarItems
addMenuItem
public void addMenuItem(ContextMenuItem item)
- Description copied from class:
ContextMenu
- Add a item
- Overrides:
addMenuItem
in class ContextMenu
- Parameters:
item
- the item object
getJavascriptName
public String getJavascriptName()
- Returns:
- Returns the javascriptName.
setJavascriptName
public void setJavascriptName(String javascriptName)
- Parameters:
javascriptName
- The javascriptName to set.
isSearchable
public boolean isSearchable()
- Returns:
- Returns the searchable.
setSearchable
public void setSearchable(boolean searchable)
- Parameters:
searchable
- The searchable to set.
getOnSearchFunction
public String getOnSearchFunction()
- Returns:
- Returns the onSearchFunction.
setOnSearchFunction
public void setOnSearchFunction(String onSearch)
- Parameters:
onSearch
- The onSearch function to set.
getSearchStr
public String getSearchStr()
- Returns:
- Returns the searchStr.
setSearchStr
public void setSearchStr(String searchStr)
- Parameters:
searchStr
- The searchStr to set.
Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.