Class CmsSitemapToolbar
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.gwt.client.ui.CmsToolbar
org.opencms.ade.sitemap.client.toolbar.CmsSitemapToolbar
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget
Sitemap toolbar.
- Since:
- 8.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classQuick launch handler for the sitemap.Nested classes/interfaces inherited from class org.opencms.gwt.client.ui.CmsToolbar
CmsToolbar.I_CmsToolbarUiBinderNested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled -
Field Summary
Fields inherited from class org.opencms.gwt.client.ui.CmsToolbar
m_buttonPanelLeft, m_buttonPanelRight, m_quickLauncher, m_toolbarCenter, m_userInfoFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeactivates all toolbar buttons.Gets the context menu button.Returns the toolbar handler.voidonButtonActivation(com.google.gwt.user.client.ui.Widget widget) Should be executed by every widget when starting an action.voidsetClipboardEnabled(boolean enabled, String disabledReason) Enables/disables the new clipboard button.voidsetGalleryTypes(Collection<org.opencms.ade.sitemap.shared.CmsGalleryType> galleryTypes) Sets the available gallery types.voidsetMode(org.opencms.ade.sitemap.shared.CmsSitemapData.EditorMode mode) Sets the galleries mode.voidsetNewEnabled(boolean enabled, String disabledReason) Enables/disables the new menu button.voidsetNewGalleryEnabled(boolean enabled, String disabledReason) Enables/disables the new menu button.Methods inherited from class org.opencms.gwt.client.ui.CmsToolbar
addLeft, addRight, getAll, getQuickLauncher, getToolbarCenter, getUserInfo, insertLeft, insertRight, setAppTitle, setComplexTitle, setQuickLaunchHandler, showToolbar, showToolbarMethods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Constructor Details
-
CmsSitemapToolbar
Constructor.- Parameters:
controller- the sitemap controller
-
-
Method Details
-
deactivateAll
Deactivates all toolbar buttons. -
getContextMenuButton
Gets the context menu button.- Returns:
- the context menu button
-
getToolbarHandler
Returns the toolbar handler.- Returns:
- the toolbar handler
-
onButtonActivation
Should be executed by every widget when starting an action.- Parameters:
widget- the widget that got activated
-
setClipboardEnabled
Enables/disables the new clipboard button.- Parameters:
enabled-trueto enable the buttondisabledReason- the reason, why the button is disabled
-
setGalleryTypes
Sets the available gallery types.- Parameters:
galleryTypes- the gallery types
-
setNewEnabled
Enables/disables the new menu button.- Parameters:
enabled-trueto enable the buttondisabledReason- the reason, why the button is disabled
-
setNewGalleryEnabled
Enables/disables the new menu button.- Parameters:
enabled-trueto enable the buttondisabledReason- the reason, why the button is disabled
-