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
,CmsParentSitemapMenuEntry
,CmsRefreshMenuEntry
,CmsRemoveMenuEntry
,CmsResourceInfoMenuEntry
,CmsSeoMenuEntry
,CmsSetDefaultModelMenuEntry
,CmsShowMenuEntry
,CmsSubSitemapMenuEntry
Common super class for all sitemap context menu entries.
- Since:
- 8.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
De-attaches the hoverbar.Generates the context menu item.protected CmsSitemapHoverbar
Returns 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_CmsContextMenuEntry
objects.boolean
Returnstrue
if this menu entry has a sub menufalse
otherwise.boolean
isActive()
Returnstrue
if this menu entry is activefalse
otherwise.boolean
Returnstrue
if this menu entry is a separatorfalse
otherwise.boolean
Returnstrue
if this menu entry is visiblefalse
otherwise.abstract void
onShow()
Executed when the context-menu is opened.void
setActive
(boolean active) Sets if this menu entry is active.void
setDisabledReason
(String reason) Sets the reason if the entry is de-activated.void
Sets the label (text) for the menu entry.void
setVisible
(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, wait
Methods 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_CmsContextMenuEntry
Generates the context menu item.- Specified by:
generateMenuItem
in interfaceI_CmsContextMenuEntry
- Returns:
- the context menu item
- See Also:
-
getIconClass
Description copied from interface:I_CmsContextMenuEntry
Returns a CSS class which should be used to display an icon, or null if no icon is required.- Specified by:
getIconClass
in interfaceI_CmsContextMenuEntry
- Returns:
- the CSS class for the icon
- See Also:
-
getJspPath
Description copied from interface:I_CmsContextMenuEntry
Returns the JSP path for the command generation.- Specified by:
getJspPath
in interfaceI_CmsContextMenuEntry
- Returns:
- the JSP path
- See Also:
-
getLabel
Description copied from interface:I_CmsContextMenuEntry
Returns the label (text) for the menu entry.- Specified by:
getLabel
in interfaceI_CmsContextMenuEntry
- Returns:
- the label
- See Also:
-
getName
Description copied from interface:I_CmsContextMenuEntry
Returns the name of the entry.- Specified by:
getName
in interfaceI_CmsContextMenuEntry
- Returns:
- the name of the entry
- See Also:
-
getReason
Description copied from interface:I_CmsContextMenuEntry
Returns the reason if the entry is de-activated .- Specified by:
getReason
in interfaceI_CmsContextMenuEntry
- Returns:
- the reason
- See Also:
-
getSubMenu
Description copied from interface:I_CmsContextMenuEntry
Returns a list ofI_CmsContextMenuEntry
objects.- Specified by:
getSubMenu
in interfaceI_CmsContextMenuEntry
- Returns:
- the sub menu entries
- See Also:
-
hasSubMenu
Description copied from interface:I_CmsContextMenuEntry
Returnstrue
if this menu entry has a sub menufalse
otherwise.- Specified by:
hasSubMenu
in interfaceI_CmsContextMenuEntry
- Returns:
true
if this menu entry has a sub menufalse
otherwise- See Also:
-
isActive
Description copied from interface:I_CmsContextMenuEntry
Returnstrue
if this menu entry is activefalse
otherwise.- Specified by:
isActive
in interfaceI_CmsContextMenuEntry
- Returns:
true
if this menu entry is activefalse
otherwise- See Also:
-
isSeparator
Description copied from interface:I_CmsContextMenuEntry
Returnstrue
if this menu entry is a separatorfalse
otherwise.- Specified by:
isSeparator
in interfaceI_CmsContextMenuEntry
- Returns:
true
if this menu entry is a separatorfalse
otherwise- See Also:
-
isVisible
Description copied from interface:I_CmsContextMenuEntry
Returnstrue
if this menu entry is visiblefalse
otherwise.- Specified by:
isVisible
in interfaceI_CmsContextMenuEntry
- Returns:
true
if this menu entry is visiblefalse
otherwise- See Also:
-
onShow
Executed when the context-menu is opened. -
setActive
Sets if this menu entry is active.- Parameters:
active
-true
to 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
-true
to set the entry visible
-
deattachHoverbar
De-attaches the hoverbar. -
getHoverbar
Returns the hoverbar.- Returns:
- the hoverbar
-