|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.gui.control.ControlImpl info.magnolia.cms.gui.control.ContextMenu
public class ContextMenu
This class encapsulates the context menu, used in the tree.
Field Summary |
---|
Constructor Summary | |
---|---|
ContextMenu(String menuName)
Create a context menu and provide the name (used in javascript) |
Method Summary | |
---|---|
void |
addMenuItem(ContextMenuItem item)
Add a item |
String |
getHtml()
Renders the HTML Code. |
String |
getJavascript()
|
ContextMenuItem |
getMenuItem(int col)
|
ContextMenuItem |
getMenuItemByName(String name)
|
List<ContextMenuItem> |
getMenuItems()
|
void |
setMenuItems(List<ContextMenuItem> menuItems)
Populate it with a list |
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 |
---|
public ContextMenu(String menuName)
menuName
- the name used for the menuMethod Detail |
---|
public List<ContextMenuItem> getMenuItems()
public void setMenuItems(List<ContextMenuItem> menuItems)
menuItems
- the listpublic ContextMenuItem getMenuItem(int col)
col
- index
public ContextMenuItem getMenuItemByName(String name)
public void addMenuItem(ContextMenuItem item)
item
- the item objectpublic String getHtml()
getHtml
in interface Control
getHtml
in class ControlImpl
Control.getHtml()
public String getJavascript()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |