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

public class CmsSitemapToolbar extends CmsToolbar
Sitemap toolbar.

Since:
8.0.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static 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

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • deactivateAll

      public void 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

      public void onButtonActivation(com.google.gwt.user.client.ui.Widget widget)
      Should be executed by every widget when starting an action.

      Parameters:
      widget - the widget that got activated
    • setClipboardEnabled

      public void setClipboardEnabled(boolean enabled, String disabledReason)
      Enables/disables the new clipboard button.

      Parameters:
      enabled - true to enable the button
      disabledReason - the reason, why the button is disabled
    • setGalleryTypes

      public void setGalleryTypes(Collection<org.opencms.ade.sitemap.shared.CmsGalleryType> galleryTypes)
      Sets the available gallery types.

      Parameters:
      galleryTypes - the gallery types
    • setMode

      public void setMode(org.opencms.ade.sitemap.shared.CmsSitemapData.EditorMode mode)
      Sets the galleries mode.

      Parameters:
      mode - the editor mode
    • setNewEnabled

      public void setNewEnabled(boolean enabled, String disabledReason)
      Enables/disables the new menu button.

      Parameters:
      enabled - true to enable the button
      disabledReason - the reason, why the button is disabled
    • setNewGalleryEnabled

      public void setNewGalleryEnabled(boolean enabled, String disabledReason)
      Enables/disables the new menu button.

      Parameters:
      enabled - true to enable the button
      disabledReason - the reason, why the button is disabled