Class A_CmsSitemapMenuEntry
java.lang.Object
org.opencms.ade.sitemap.client.hoverbar.A_CmsSitemapMenuEntry
- All Implemented Interfaces:
I_CmsContextMenuEntry
- Direct Known Subclasses:
CmsAddToNavMenuEntry,CmsAdvancedSubmenu,CmsAvailabilityMenuEntry,CmsBumpDetailPageMenuEntry,CmsChangeCategoryMenuEntry,CmsCopyAsModelGroupPageMenuEntry,CmsCopyModelPageMenuEntry,CmsCopyPageMenuEntry,CmsCreateCategoryMenuEntry,CmsCreateGalleryMenuEntry,CmsDeleteCategoryMenuEntry,CmsDeleteMenuEntry,CmsDeleteModelPageMenuEntry,CmsDisableMenuEntry,CmsEditMenuEntry,CmsEditModelPageMenuEntry,CmsEditRedirectMenuEntry,CmsGotoExplorerMenuEntry,CmsGotoMenuEntry,CmsGotoSubSitemapMenuEntry,CmsHideMenuEntry,CmsLockReportMenuEntry,CmsMergeMenuEntry,CmsNewChoiceMenuEntry,CmsOpenGalleryMenuEntry,CmsOptimizeGalleryMenuEntry,CmsParentSitemapMenuEntry,CmsRefreshMenuEntry,CmsRemoveMenuEntry,CmsResourceInfoMenuEntry,CmsSeoMenuEntry,CmsSetDefaultModelMenuEntry,CmsShowMenuEntry,CmsSubSitemapMenuEntry
Common super class for all sitemap context menu entries.
- Since:
- 8.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDe-attaches the hoverbar.Generates the context menu item.protected CmsSitemapHoverbarReturns the hoverbar.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.abstract voidonShow()Executed when the context-menu is opened.voidsetActive(boolean active) Sets if this menu entry is active.voidsetDisabledReason(String reason) Sets the reason if the entry is de-activated.voidSets the label (text) for the menu entry.voidsetVisible(boolean visible) Sets if the menu entry is visible.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.gwt.client.ui.contextmenu.I_CmsContextMenuEntry
execute
-
Constructor Details
-
A_CmsSitemapMenuEntry
Constructor.- Parameters:
hoverbar- the hoverbar
-
-
Method Details
-
generateMenuItem
Description copied from interface:I_CmsContextMenuEntryGenerates the context menu item.- Specified by:
generateMenuItemin interfaceI_CmsContextMenuEntry- Returns:
- the context menu item
- See Also:
-
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:
-
onShow
Executed when the context-menu is opened. -
setActive
Sets if this menu entry is active.- Parameters:
active-trueto set this menu entry active
-
setDisabledReason
Sets the reason if the entry is de-activated.- Parameters:
reason- the reason if the entry is de-activated
-
setLabel
Sets the label (text) for the menu entry.- Parameters:
label- the label (text) for the menu entry
-
setVisible
Sets if the menu entry is visible.- Parameters:
visible-trueto set the entry visible
-
deattachHoverbar
De-attaches the hoverbar. -
getHoverbar
Returns the hoverbar.- Returns:
- the hoverbar
-