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
Modifier and TypeClassDescriptionstatic class
Quick launch handler for the sitemap.Nested classes/interfaces inherited from class org.opencms.gwt.client.ui.CmsToolbar
CmsToolbar.I_CmsToolbarUiBinder
Nested 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_userInfo
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deactivates all toolbar buttons.Gets the context menu button.Returns the toolbar handler.void
onButtonActivation
(com.google.gwt.user.client.ui.Widget widget) Should be executed by every widget when starting an action.void
setClipboardEnabled
(boolean enabled, String disabledReason) Enables/disables the new clipboard button.void
setGalleryTypes
(Collection<org.opencms.ade.sitemap.shared.CmsGalleryType> galleryTypes) Sets the available gallery types.void
setMode
(org.opencms.ade.sitemap.shared.CmsSitemapData.EditorMode mode) Sets the galleries mode.void
setNewEnabled
(boolean enabled, String disabledReason) Enables/disables the new menu button.void
setNewGalleryEnabled
(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, setQuickLaunchHandler, showToolbar, showToolbar
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
Methods 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, unsinkEvents
Methods 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
-true
to 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
-true
to enable the buttondisabledReason
- the reason, why the button is disabled
-
setNewGalleryEnabled
Enables/disables the new menu button.- Parameters:
enabled
-true
to enable the buttondisabledReason
- the reason, why the button is disabled
-