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
public class CmsEditModelPageMenuEntry extends A_CmsSitemapMenuEntry
Context menu entry for editing a model page.
-
-
Constructor Summary
Constructors Constructor Description CmsEditModelPageMenuEntry(CmsSitemapHoverbar hoverbar)
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
checkVisible(org.opencms.util.CmsUUID id)
Checks if the model page menu entry should be visible.static void
editModelPage(java.lang.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 Detail
-
CmsEditModelPageMenuEntry
public CmsEditModelPageMenuEntry(CmsSitemapHoverbar hoverbar)
Creates a new instance.- Parameters:
hoverbar
- the hover bar
-
-
Method Detail
-
checkVisible
public static boolean checkVisible(org.opencms.util.CmsUUID id)
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
public static void editModelPage(java.lang.String resourcePath, boolean isModelGroup)
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
public void execute()
Description copied from interface:I_CmsContextMenuEntry
Executes the context menu action.- See Also:
I_CmsContextMenuEntry.execute()
-
onShow
public void onShow()
Description copied from class:A_CmsSitemapMenuEntry
Executed when the context-menu is opened.- Specified by:
onShow
in classA_CmsSitemapMenuEntry
- See Also:
A_CmsSitemapMenuEntry.onShow()
-
-