public class CmsExplorerContextMenu
extends java.lang.Object
This object stores all entries which are displayed in a context menu in a sorted list.
| 构造器和说明 |
|---|
CmsExplorerContextMenu()
Default constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addContextMenuEntry(CmsExplorerContextMenuItem item)
Adds a menu entry to the list of context menu items.
|
void |
addContextMenuSeparator(CmsExplorerContextMenuItem item)
Adds a menu separator to the list of context menu items.
|
void |
addEntries(java.util.List<CmsExplorerContextMenuItem> entries)
Adds a list of CmsContextMenuItem objects to the context menu list.
|
java.lang.Object |
clone() |
java.util.List<CmsExplorerContextMenuItem> |
getAllEntries()
Returns all entries of the context menu.
|
boolean |
isEmpty()
Tests if the context menu is empty.
|
boolean |
isMultiMenu()
Returns true if the menu is a multi context menu for more than one selected file.
|
void |
setAllEntries(java.util.List<CmsExplorerContextMenuItem> entries)
Sets all entries of the context menu.
|
void |
setMultiMenu(boolean multiMenu)
Sets if the menu is a multi context menu for more than one selected file.
|
public void addContextMenuEntry(CmsExplorerContextMenuItem item)
item - the entry item to add to the listpublic void addContextMenuSeparator(CmsExplorerContextMenuItem item)
item - the separator item to add to the listpublic void addEntries(java.util.List<CmsExplorerContextMenuItem> entries)
The list is sorted by their order after that operation.
entries - a list of initialized context menu itemspublic java.lang.Object clone()
clone 在类中 java.lang.ObjectObject.clone()public java.util.List<CmsExplorerContextMenuItem> getAllEntries()
public boolean isEmpty()
public boolean isMultiMenu()
public void setAllEntries(java.util.List<CmsExplorerContextMenuItem> entries)
entries - all entries of the context menupublic void setMultiMenu(boolean multiMenu)
multiMenu - true, if the menu is a multi context menu for more than one selected file, otherwise false