Class MaximizeToggleButton

  • All Implemented Interfaces:
    com.google.gwt.event.dom.client.HasAllMouseHandlers, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasMouseDownHandlers, com.google.gwt.event.dom.client.HasMouseMoveHandlers, com.google.gwt.event.dom.client.HasMouseOutHandlers, com.google.gwt.event.dom.client.HasMouseOverHandlers, com.google.gwt.event.dom.client.HasMouseUpHandlers, com.google.gwt.event.dom.client.HasMouseWheelHandlers, 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.Focusable, com.google.gwt.user.client.ui.HasEnabled, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>, org.gwtbootstrap3.client.ui.base.HasActive, org.gwtbootstrap3.client.ui.base.HasBadge, org.gwtbootstrap3.client.ui.base.HasDataTarget, org.gwtbootstrap3.client.ui.base.HasDataToggle, org.gwtbootstrap3.client.ui.base.HasIcon, org.gwtbootstrap3.client.ui.base.HasIconPosition, org.gwtbootstrap3.client.ui.base.HasId, org.gwtbootstrap3.client.ui.base.HasInlineStyle, org.gwtbootstrap3.client.ui.base.HasPull, org.gwtbootstrap3.client.ui.base.HasResponsiveness, org.gwtbootstrap3.client.ui.base.HasSize<org.gwtbootstrap3.client.ui.constants.ButtonSize>, org.gwtbootstrap3.client.ui.base.HasType<org.gwtbootstrap3.client.ui.constants.ButtonType>, org.uberfire.client.mvp.HasPresenter<org.uberfire.client.workbench.panels.MaximizeToggleButtonPresenter>, org.uberfire.client.mvp.UberView<org.uberfire.client.workbench.panels.MaximizeToggleButtonPresenter>, org.uberfire.client.workbench.panels.MaximizeToggleButtonPresenter.View

    public class MaximizeToggleButton
    extends org.gwtbootstrap3.client.ui.Button
    implements org.uberfire.client.workbench.panels.MaximizeToggleButtonPresenter.View
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.gwtbootstrap3.client.ui.base.button.AbstractButton

        org.gwtbootstrap3.client.ui.base.button.AbstractButton.ButtonStateHandler
      • 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
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

        com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel

        com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
    • Field Summary

      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.gwt.event.shared.HandlerRegistration addClickHandler​(com.google.gwt.event.dom.client.ClickHandler handler)  
      void click()
      Normally invoked automatically when this button gets clicked.
      org.uberfire.mvp.Command getMaximizeCommand()
      Returns the currently registered maximize command.
      org.uberfire.mvp.Command getUnmaximizeCommand()
      Returns the currently registered unmaximize command.
      void init​(org.uberfire.client.workbench.panels.MaximizeToggleButtonPresenter presenter)  
      boolean isMaximized()
      Reports whether this button is currently in the maximized state.
      void setMaximizeCommand​(org.uberfire.mvp.Command maximizeCommand)
      Sets the command to invoke upon each transition from unmaximized to maximized.
      void setMaximized​(boolean maximized)
      Changes the maximized state of this button without calling the commands.
      void setUnmaximizeCommand​(org.uberfire.mvp.Command unmaximizeCommand)
      Sets the command to invoke upon each transition from maximized to unmaximized.
      • Methods inherited from class org.gwtbootstrap3.client.ui.Button

        createElement
      • Methods inherited from class org.gwtbootstrap3.client.ui.base.button.AbstractToggleButton

        getDataToggle, setDataToggle, setToggleCaret
      • Methods inherited from class org.gwtbootstrap3.client.ui.base.button.AbstractIconButton

        getBadgePosition, getBadgeText, getIcon, getIconFlip, getIconPosition, getIconRotate, getIconSize, getText, isIconBordered, isIconFixedWidth, isIconInverse, isIconPulse, isIconSpin, setBadgePosition, setBadgeText, setIcon, setIconBordered, setIconColor, setIconFixedWidth, setIconFlip, setIconInverse, setIconPosition, setIconPulse, setIconRotate, setIconSize, setIconSpin, setText
      • Methods inherited from class org.gwtbootstrap3.client.ui.base.button.AbstractButton

        addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, getDataTarget, getSize, getTabIndex, getType, isActive, isEnabled, setAccessKey, setActive, setBlock, setDataDismiss, setDataLoadingText, setDataTarget, setDataTargetWidget, setDataTargetWidgets, setEnabled, setFocus, setSize, setTabIndex, setType, state, toggle
      • Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget

        add, getId, getPull, insert, insert, remove, setColor, setHiddenOn, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setVisibleOn
      • Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel

        add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, remove
      • Methods inherited from class com.google.gwt.user.client.ui.Panel

        add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
      • Methods inherited from interface com.google.gwt.event.shared.HasHandlers

        fireEvent
      • Methods inherited from interface com.google.gwt.user.client.ui.IsWidget

        asWidget
      • Methods inherited from interface org.uberfire.client.workbench.panels.MaximizeToggleButtonPresenter.View

        setEnabled, setVisible
    • Constructor Detail

      • MaximizeToggleButton

        public MaximizeToggleButton()
    • Method Detail

      • addClickHandler

        public com.google.gwt.event.shared.HandlerRegistration addClickHandler​(com.google.gwt.event.dom.client.ClickHandler handler)
        Specified by:
        addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlers
        Overrides:
        addClickHandler in class org.gwtbootstrap3.client.ui.base.button.AbstractButton
      • init

        public void init​(org.uberfire.client.workbench.panels.MaximizeToggleButtonPresenter presenter)
        Specified by:
        init in interface org.uberfire.client.mvp.HasPresenter<org.uberfire.client.workbench.panels.MaximizeToggleButtonPresenter>
      • click

        public void click()
        Normally invoked automatically when this button gets clicked. Exposed for testing purposes.
        Overrides:
        click in class org.gwtbootstrap3.client.ui.base.button.AbstractButton
      • getMaximizeCommand

        public org.uberfire.mvp.Command getMaximizeCommand()
        Returns the currently registered maximize command. Can be used to check if there is currently a maximize command registered.
      • setMaximizeCommand

        public void setMaximizeCommand​(org.uberfire.mvp.Command maximizeCommand)
        Sets the command to invoke upon each transition from unmaximized to maximized.
      • getUnmaximizeCommand

        public org.uberfire.mvp.Command getUnmaximizeCommand()
        Returns the currently registered unmaximize command. Can be used to check if there is currently an unmaximize command registered.
      • setUnmaximizeCommand

        public void setUnmaximizeCommand​(org.uberfire.mvp.Command unmaximizeCommand)
        Sets the command to invoke upon each transition from maximized to unmaximized.
      • isMaximized

        public boolean isMaximized()
        Reports whether this button is currently in the maximized state. If true, the next click will return to the normal unmaximized state. If false, the next click will transition to the maximized state.
      • setMaximized

        public void setMaximized​(boolean maximized)
        Changes the maximized state of this button without calling the commands. This can be used to notify the button that some external process has already maximized the thing in question. It is permissible but not necessary to call this method from the maximizeCommadn and unmaximizeCommand.
        Specified by:
        setMaximized in interface org.uberfire.client.workbench.panels.MaximizeToggleButtonPresenter.View
        Parameters:
        maximized - the new maximized state to set.