|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.workplace.explorer.CmsExplorerContextMenu
public class CmsExplorerContextMenu
Provides methods to build a context menu for an explorer resource type.
This object stores all entries which are displayed in a context menu in a sorted list.
| Constructor Summary | |
|---|---|
CmsExplorerContextMenu()
Default constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsExplorerContextMenu()
| Method Detail |
|---|
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 in class 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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||