info.magnolia.cms.gui.control
Class FunctionBar

java.lang.Object
  extended by info.magnolia.cms.gui.control.ControlImpl
      extended by info.magnolia.cms.gui.control.ContextMenu
          extended by 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

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
FunctionBar(java.lang.String menuName)
           
 
Method Summary
 void addMenuItem(ContextMenuItem item)
          Add a item
 java.lang.String getHtml()
          Render the html code using the freemarker template
 java.lang.String getJavascript()
          Render the javascript code to initialize it
 java.lang.String getJavascriptName()
           
 java.lang.String getOnSearchFunction()
           
 java.lang.String getSearchStr()
           
 boolean hasMenuItems()
           
 boolean isSearchable()
           
 void setJavascriptName(java.lang.String javascriptName)
           
 void setOnSearchFunction(java.lang.String onSearch)
           
 void setSearchable(boolean searchable)
           
 void setSearchStr(java.lang.String searchStr)
           
 
Methods inherited from class info.magnolia.cms.gui.control.ContextMenu
getMenuItem, getMenuItemByName, getMenuItems, setMenuItems
 
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

FunctionBar

public FunctionBar(java.lang.String menuName)
Parameters:
menuName - the name of this menu (used in js)
Method Detail

getHtml

public java.lang.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 java.lang.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 java.lang.String getJavascriptName()
Returns:
Returns the javascriptName.

setJavascriptName

public void setJavascriptName(java.lang.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 java.lang.String getOnSearchFunction()
Returns:
Returns the onSearchFunction.

setOnSearchFunction

public void setOnSearchFunction(java.lang.String onSearch)
Parameters:
onSearch - The onSearch function to set.

getSearchStr

public java.lang.String getSearchStr()
Returns:
Returns the searchStr.

setSearchStr

public void setSearchStr(java.lang.String searchStr)
Parameters:
searchStr - The searchStr to set.


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