Class CmsContextMenuEntry
java.lang.Object
org.opencms.gwt.client.ui.contextmenu.CmsContextMenuEntry
- All Implemented Interfaces:
I_CmsContextMenuEntry
Implementation for a context menu entry.
- Since:
- version 8.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCmsContextMenuEntry(I_CmsContextMenuHandler handler, org.opencms.util.CmsUUID structureId, I_CmsContextMenuCommand menuCommand) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the context menu action.Generates the context menu item.org.opencms.gwt.shared.CmsContextMenuEntryBeangetBean()Returns the bean.Returns a CSS class which should be used to display an icon, or null if no icon is required.Returns the JSP path for the command generation.getLabel()Returns the label (text) for the menu entry.getName()Returns the name of the entry.Returns the reason if the entry is de-activated .Returns a list ofI_CmsContextMenuEntryobjects.booleanReturnstrueif this menu entry has a sub menufalseotherwise.booleanisActive()Returnstrueif this menu entry is activefalseotherwise.booleanReturnstrueif this menu entry is a separatorfalseotherwise.booleanReturnstrueif this menu entry is visiblefalseotherwise.voidsetBean(org.opencms.gwt.shared.CmsContextMenuEntryBean bean) Sets the bean.voidsetMenuCommand(I_CmsContextMenuCommand command) Sets the command.voidsetSubMenu(List<I_CmsContextMenuEntry> subMenu) Sets the sub menu.
-
Constructor Details
-
Method Details
-
execute
Description copied from interface:I_CmsContextMenuEntryExecutes the context menu action.- Specified by:
executein interfaceI_CmsContextMenuEntry- See Also:
-
generateMenuItem
Description copied from interface:I_CmsContextMenuEntryGenerates the context menu item.- Specified by:
generateMenuItemin interfaceI_CmsContextMenuEntry- Returns:
- the context menu item
- See Also:
-
getBean
Returns the bean.- Returns:
- the bean
-
getIconClass
Description copied from interface:I_CmsContextMenuEntryReturns a CSS class which should be used to display an icon, or null if no icon is required.- Specified by:
getIconClassin interfaceI_CmsContextMenuEntry- Returns:
- the CSS class for the icon
- See Also:
-
getJspPath
Description copied from interface:I_CmsContextMenuEntryReturns the JSP path for the command generation.- Specified by:
getJspPathin interfaceI_CmsContextMenuEntry- Returns:
- the JSP path
- See Also:
-
getLabel
Description copied from interface:I_CmsContextMenuEntryReturns the label (text) for the menu entry.- Specified by:
getLabelin interfaceI_CmsContextMenuEntry- Returns:
- the label
- See Also:
-
getName
Description copied from interface:I_CmsContextMenuEntryReturns the name of the entry.- Specified by:
getNamein interfaceI_CmsContextMenuEntry- Returns:
- the name of the entry
- See Also:
-
getReason
Description copied from interface:I_CmsContextMenuEntryReturns the reason if the entry is de-activated .- Specified by:
getReasonin interfaceI_CmsContextMenuEntry- Returns:
- the reason
- See Also:
-
getSubMenu
Description copied from interface:I_CmsContextMenuEntryReturns a list ofI_CmsContextMenuEntryobjects.- Specified by:
getSubMenuin interfaceI_CmsContextMenuEntry- Returns:
- the sub menu entries
- See Also:
-
hasSubMenu
Description copied from interface:I_CmsContextMenuEntryReturnstrueif this menu entry has a sub menufalseotherwise.- Specified by:
hasSubMenuin interfaceI_CmsContextMenuEntry- Returns:
trueif this menu entry has a sub menufalseotherwise- See Also:
-
isActive
Description copied from interface:I_CmsContextMenuEntryReturnstrueif this menu entry is activefalseotherwise.- Specified by:
isActivein interfaceI_CmsContextMenuEntry- Returns:
trueif this menu entry is activefalseotherwise- See Also:
-
isSeparator
Description copied from interface:I_CmsContextMenuEntryReturnstrueif this menu entry is a separatorfalseotherwise.- Specified by:
isSeparatorin interfaceI_CmsContextMenuEntry- Returns:
trueif this menu entry is a separatorfalseotherwise- See Also:
-
isVisible
Description copied from interface:I_CmsContextMenuEntryReturnstrueif this menu entry is visiblefalseotherwise.- Specified by:
isVisiblein interfaceI_CmsContextMenuEntry- Returns:
trueif this menu entry is visiblefalseotherwise- See Also:
-
setSubMenu
Sets the sub menu.- Parameters:
subMenu- the sub menu to set
-