Class CmsCodeMirrorToolbarButton

  • All Implemented Interfaces:,,,,,,
    Direct Known Subclasses:

    public class CmsCodeMirrorToolbarButton
    Simple toolbar button class for the CodeMirror widget.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class,
    • Field Summary

      Modifier and Type Field Description
      protected boolean m_enabled
      True if the button is enabled.
      protected CmsStyleVariable m_enabledStyle
      Controls the style for enabled / disabled state.
      protected m_root
      The root element.
      • Fields inherited from class

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description addClickHandler​( handler)  
      void setEnabled​(boolean enabled)
      Enables / disables the button.
      • Methods inherited from class

        claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
      • Methods inherited from class

        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

        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
      • Methods inherited from interface

    • Field Detail

      • m_root

        protected m_root
        The root element.
      • m_enabled

        protected boolean m_enabled
        True if the button is enabled.
    • Method Detail

      • addClickHandler

        public addClickHandler​( handler)
        Specified by:
        addClickHandler in interface
        See Also:
      • setEnabled

        public void setEnabled​(boolean enabled)
        Enables / disables the button.
        enabled - true if the button should be enabled