Class CmsEditModelPageMenuEntry
java.lang.Object
org.opencms.ade.sitemap.client.hoverbar.A_CmsSitemapMenuEntry
org.opencms.ade.sitemap.client.hoverbar.CmsEditModelPageMenuEntry
- All Implemented Interfaces:
I_CmsContextMenuEntry
Context menu entry for editing a model page.
-
Constructor Summary
ConstructorDescriptionCmsEditModelPageMenuEntry
(CmsSitemapHoverbar hoverbar) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkVisible
(org.opencms.util.CmsUUID id) Checks if the model page menu entry should be visible.static void
editModelPage
(String resourcePath, boolean isModelGroup) Opens the editor for a model page menu entry.void
execute()
Executes the context menu action.void
onShow()
Executed when the context-menu is opened.Methods inherited from class org.opencms.ade.sitemap.client.hoverbar.A_CmsSitemapMenuEntry
deattachHoverbar, generateMenuItem, getHoverbar, getIconClass, getJspPath, getLabel, getName, getReason, getSubMenu, hasSubMenu, isActive, isSeparator, isVisible, setActive, setDisabledReason, setLabel, setVisible
-
Constructor Details
-
CmsEditModelPageMenuEntry
Creates a new instance.- Parameters:
hoverbar
- the hover bar
-
-
Method Details
-
checkVisible
Checks if the model page menu entry should be visible.- Parameters:
id
- the id of the model page- Returns:
- true if the entry should be visible
-
editModelPage
Opens the editor for a model page menu entry.- Parameters:
resourcePath
- the resource path of the model pageisModelGroup
- if the given entry is a model group page
-
execute
Description copied from interface:I_CmsContextMenuEntry
Executes the context menu action.- See Also:
-
onShow
Description copied from class:A_CmsSitemapMenuEntry
Executed when the context-menu is opened.- Specified by:
onShow
in classA_CmsSitemapMenuEntry
- See Also:
-