public interface I_CmsContextMenuItem extends I_CmsHasMenuItemVisibility, I_CmsContextMenuAction
| Modifier and Type | Method and Description |
|---|---|
void |
executeAction(I_CmsDialogContext context)
Executes the context menu action given a dialog context.
|
java.lang.String |
getId()
Gets the id.
|
float |
getOrder()
Integer attribute which is used to order menu items.
|
java.lang.String |
getParentId()
Gets the id of the parent entry.
|
int |
getPriority()
Gets the priority.
|
java.lang.String |
getTitle(java.util.Locale locale)
Gets the title.
|
CmsMenuItemVisibilityMode |
getVisibility(CmsObject cms,
java.util.List<CmsResource> resources)
Computes the visibility for this context menu items with the given CMS context and resources.
|
boolean |
isLeafItem()
Returns true if this is a leaf item, i.e. an item which has no child items.
|
getVisibilityvoid executeAction(I_CmsDialogContext context)
executeAction in interface I_CmsContextMenuActioncontext - the dialog contextjava.lang.String getId()
The id does not need to be unique among all context menu items which are in use in the system, but when multiple menu items with the same id are available for a given context menu, only one of them will be picked, based on the priority (a higher priority context menu item will be preferred to one with a lower priority.
float getOrder()
Items with a higher 'order' value will appear after items with a lower order at the same tree level.
java.lang.String getParentId()
If this returns null, the context menu item will be inserted at the root level of the context menu, otherwise, it will be added I_CmsContextMenuActionas a sub-entry of the context menu entry with the given id (if such an entry exists; otherwise, the child entry will be ignored).
int getPriority()
If multiple context menu items with the same id are available for a menu, the one with the highest priority will be picked.
java.lang.String getTitle(java.util.Locale locale)
locale - the localeCmsMenuItemVisibilityMode getVisibility(CmsObject cms, java.util.List<CmsResource> resources)
getVisibility in interface I_CmsHasMenuItemVisibilitycms - the current CMS contextresources - the resources for which the context menu is being openedboolean isLeafItem()