info.magnolia.cms.gui.control
Class ContextMenuItem

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

public class ContextMenuItem
extends ControlImpl

Version:
2.0
Author:
Vinzenz Wyser

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
ContextMenuItem()
           
ContextMenuItem(String name)
           
 
Method Summary
 void addJavascriptCondition(String methodName)
          Must be a object with a method test(): addJavascriptCondition("new MyCondition()").
 String getHtml()
          Returns an empty string.
 String getIcon()
           
 String getJavascriptCondition(int index)
           
 List getJavascriptConditions()
           
 String getJavascriptMenuName()
           
 String getOnclick()
           
static ContextMenuItem getRefreshMenuItem(Tree tree, info.magnolia.cms.i18n.Messages msgs, javax.servlet.http.HttpServletRequest request)
           
 void setIcon(String icon)
           
 void setJavascriptMenuName(String javascriptMenuName)
           
 void setOnclick(String s)
           
 
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

ContextMenuItem

public ContextMenuItem()

ContextMenuItem

public ContextMenuItem(String name)
Method Detail

getRefreshMenuItem

public static ContextMenuItem getRefreshMenuItem(Tree tree,
                                                 info.magnolia.cms.i18n.Messages msgs,
                                                 javax.servlet.http.HttpServletRequest request)

setOnclick

public void setOnclick(String s)

getOnclick

public String getOnclick()

addJavascriptCondition

public void addJavascriptCondition(String methodName)
Must be a object with a method test(): addJavascriptCondition("new MyCondition()").


getJavascriptConditions

public List getJavascriptConditions()

getJavascriptCondition

public String getJavascriptCondition(int index)

getHtml

public String getHtml()
Description copied from class: ControlImpl
Returns an empty string.

Specified by:
getHtml in interface Control
Overrides:
getHtml in class ControlImpl
Returns:
html
See Also:
Control.getHtml()

getIcon

public String getIcon()

setIcon

public void setIcon(String icon)

getJavascriptMenuName

public String getJavascriptMenuName()

setJavascriptMenuName

public void setJavascriptMenuName(String javascriptMenuName)


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