Package org.opencms.ui.contextmenu
Class CmsContextMenuItemProviderGroup
java.lang.Object
org.opencms.ui.contextmenu.CmsContextMenuItemProviderGroup
- All Implemented Interfaces:
I_CmsContextMenuItemProvider
Class used to manage multiple context menu item providers through a single instance.
Also keeps track of available menu entries by their global id.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProvider
(Class<? extends I_CmsContextMenuItemProvider> providerClass) Adds a new provider class.void
addProvider
(I_CmsContextMenuItemProvider instance) Adds a provider.Gets a list of available context menu items.void
Initializes this instance.
-
Constructor Details
-
CmsContextMenuItemProviderGroup
public CmsContextMenuItemProviderGroup()Creates a new instance.
-
-
Method Details
-
addProvider
Adds a new provider class.- Parameters:
providerClass
- the provider class
-
getMenuItems
Description copied from interface:I_CmsContextMenuItemProvider
Gets a list of available context menu items.- Specified by:
getMenuItems
in interfaceI_CmsContextMenuItemProvider
- Returns:
- the available context menu items
- See Also:
-
initialize
Initializes this instance.This must be called after the provider classes have been added.
-