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
ConstructorsConstructorDescriptionCmsEditModelPageMenuEntry(CmsSitemapHoverbar hoverbar) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckVisible(org.opencms.util.CmsUUID id) Checks if the model page menu entry should be visible.static voideditModelPage(String resourcePath, boolean isModelGroup) Opens the editor for a model page menu entry.voidexecute()Executes the context menu action.voidonShow()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_CmsContextMenuEntryExecutes the context menu action.- See Also:
-
onShow
Description copied from class:A_CmsSitemapMenuEntryExecuted when the context-menu is opened.- Specified by:
onShowin classA_CmsSitemapMenuEntry- See Also:
-