Package org.opencms.gwt.client.ui
Interface I_CmsToolbarHandler
-
- All Superinterfaces:
I_CmsActionHandler
,I_CmsContextMenuHandler
- All Known Implementing Classes:
A_CmsToolbarHandler
,CmsContainerpageHandler
,CmsDirectEditToolbarHandler
,CmsSitemapToolbarHandler
public interface I_CmsToolbarHandler extends I_CmsContextMenuHandler
An abstract interface used to coordinate toolbar buttons with a toolbar.- Since:
- 8.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
activateSelection()
Activates the selection button.void
deactivateCurrentButton()
De-activates the current button.I_CmsToolbarButton
getActiveButton()
Returns the currently active button (may be null).void
loadContextMenu(org.opencms.util.CmsUUID structureId, org.opencms.gwt.shared.CmsCoreData.AdeContext context)
Loads the context menu.void
setActiveButton(I_CmsToolbarButton button)
Sets the active button.-
Methods inherited from interface org.opencms.gwt.client.ui.contextmenu.I_CmsActionHandler
leavePage, onSiteOrProjectChange, refreshResource
-
Methods inherited from interface org.opencms.gwt.client.ui.contextmenu.I_CmsContextMenuHandler
ensureLockOnResource, getContextMenuCommands, getContextType, getEditorHandler, unlockResource
-
-
-
-
Method Detail
-
activateSelection
void activateSelection()
Activates the selection button.
-
deactivateCurrentButton
void deactivateCurrentButton()
De-activates the current button.
-
getActiveButton
I_CmsToolbarButton getActiveButton()
Returns the currently active button (may be null).- Returns:
- the currently active button
-
loadContextMenu
void loadContextMenu(org.opencms.util.CmsUUID structureId, org.opencms.gwt.shared.CmsCoreData.AdeContext context)
Loads the context menu.- Parameters:
structureId
- the structure id of the resource for which to load the context menucontext
- the context menu item visibility context
-
setActiveButton
void setActiveButton(I_CmsToolbarButton button)
Sets the active button.- Parameters:
button
- the new active button
-
-