Package org.opencms.gwt.client.ui
Class A_CmsToolbarHandler
- java.lang.Object
-
- org.opencms.gwt.client.ui.A_CmsToolbarHandler
-
- All Implemented Interfaces:
I_CmsActionHandler
,I_CmsContextMenuHandler
,I_CmsToolbarHandler
- Direct Known Subclasses:
CmsContainerpageHandler
,CmsDirectEditToolbarHandler
,CmsSitemapToolbarHandler
public abstract class A_CmsToolbarHandler extends java.lang.Object implements I_CmsToolbarHandler
Abstract class which implements the common part of all toolbar handler functionality.- Since:
- 8.0.0
-
-
Constructor Summary
Constructors Constructor Description A_CmsToolbarHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<I_CmsContextMenuEntry>
transformEntries(java.util.List<org.opencms.gwt.shared.CmsContextMenuEntryBean> menuBeans, org.opencms.util.CmsUUID structureId)
Transforms a list of context menu entry beans to a list of context menu entries.protected I_CmsContextMenuEntry
transformSingleEntry(org.opencms.util.CmsUUID structureId, org.opencms.gwt.shared.CmsContextMenuEntryBean bean)
Creates a single context menu entry from a context menu entry bean.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
Methods inherited from interface org.opencms.gwt.client.ui.I_CmsToolbarHandler
activateSelection, deactivateCurrentButton, getActiveButton, loadContextMenu, setActiveButton
-
-
-
-
Constructor Detail
-
A_CmsToolbarHandler
public A_CmsToolbarHandler()
-
-
Method Detail
-
transformEntries
public java.util.List<I_CmsContextMenuEntry> transformEntries(java.util.List<org.opencms.gwt.shared.CmsContextMenuEntryBean> menuBeans, org.opencms.util.CmsUUID structureId)
Transforms a list of context menu entry beans to a list of context menu entries.- Parameters:
menuBeans
- the list of context menu entry beansstructureId
- the id of the resource for which to transform the context menu entries- Returns:
- a list of context menu entries
-
transformSingleEntry
protected I_CmsContextMenuEntry transformSingleEntry(org.opencms.util.CmsUUID structureId, org.opencms.gwt.shared.CmsContextMenuEntryBean bean)
Creates a single context menu entry from a context menu entry bean.- Parameters:
structureId
- the structure id of the resourcebean
- the context menu entry bean- Returns:
- the created context menu entry
-
-