Class MaximizeToggleButton
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.ComplexPanel
-
- org.gwtbootstrap3.client.ui.base.ComplexWidget
-
- org.gwtbootstrap3.client.ui.base.button.AbstractButton
-
- org.gwtbootstrap3.client.ui.base.button.AbstractIconButton
-
- org.gwtbootstrap3.client.ui.base.button.AbstractToggleButton
-
- org.gwtbootstrap3.client.ui.Button
-
- org.uberfire.client.views.pfly.maximize.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
-
-
Constructor Summary
Constructors Constructor Description MaximizeToggleButton()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.event.shared.HandlerRegistrationaddClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)voidclick()Normally invoked automatically when this button gets clicked.org.uberfire.mvp.CommandgetMaximizeCommand()Returns the currently registered maximize command.org.uberfire.mvp.CommandgetUnmaximizeCommand()Returns the currently registered unmaximize command.voidinit(org.uberfire.client.workbench.panels.MaximizeToggleButtonPresenter presenter)booleanisMaximized()Reports whether this button is currently in the maximized state.voidsetMaximizeCommand(org.uberfire.mvp.Command maximizeCommand)Sets the command to invoke upon each transition from unmaximized to maximized.voidsetMaximized(boolean maximized)Changes the maximized state of this button without calling the commands.voidsetUnmaximizeCommand(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.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
addClickHandler
public com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
- Specified by:
addClickHandlerin interfacecom.google.gwt.event.dom.client.HasClickHandlers- Overrides:
addClickHandlerin classorg.gwtbootstrap3.client.ui.base.button.AbstractButton
-
init
public void init(org.uberfire.client.workbench.panels.MaximizeToggleButtonPresenter presenter)
- Specified by:
initin interfaceorg.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:
clickin classorg.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:
setMaximizedin interfaceorg.uberfire.client.workbench.panels.MaximizeToggleButtonPresenter.View- Parameters:
maximized- the new maximized state to set.
-
-