org.gwtbootstrap3.client.ui.base.button
Class AbstractToggleButton

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by org.gwtbootstrap3.client.ui.base.ComplexWidget
                      extended by org.gwtbootstrap3.client.ui.base.button.AbstractButton
                          extended by org.gwtbootstrap3.client.ui.base.button.AbstractIconButton
                              extended by org.gwtbootstrap3.client.ui.base.button.AbstractToggleButton
All Implemented Interfaces:
HasAllMouseHandlers, HasClickHandlers, HasMouseDownHandlers, HasMouseMoveHandlers, HasMouseOutHandlers, HasMouseOverHandlers, HasMouseUpHandlers, HasMouseWheelHandlers, HasAttachHandlers, HasHandlers, EventListener, Focusable, HasEnabled, HasText, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, IsWidget, Iterable<Widget>, HasActive, HasDataTarget, HasDataToggle, HasIcon, HasIconPosition, HasId, HasInlineStyle, HasPull, HasResponsiveness, HasSize<ButtonSize>, HasType<ButtonType>
Direct Known Subclasses:
AnchorButton, Button

public abstract class AbstractToggleButton
extends AbstractIconButton
implements HasDataToggle

Base class for buttons that can be toggle buttons

Author:
Sven Jacobs
See Also:
AbstractButton, Toggle

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gwtbootstrap3.client.ui.base.button.AbstractButton
AbstractButton.ButtonStateHandler
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
IndexedPanel.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
HasWidgets.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
protected AbstractToggleButton()
           
protected AbstractToggleButton(ButtonType type)
           
 
Method Summary
 Toggle getDataToggle()
          Gets the data-toggle attribute on the widget
 void setDataToggle(Toggle toggle)
          Specifies that this button acts as a toggle, for instance for a parent DropDown or ButtonGroup

Adds a Caret as a child widget.

 void setToggleCaret(boolean toggleCaret)
          Toggles the display of the caret for the button
 
Methods inherited from class org.gwtbootstrap3.client.ui.base.button.AbstractIconButton
getIcon, getIconFlip, getIconPosition, getIconRotate, getIconSize, getText, isIconBordered, isIconFixedWidth, isIconLight, isIconMuted, isIconSpin, setIcon, setIconBordered, setIconFixedWidth, setIconFlip, setIconLight, setIconMuted, setIconPosition, setIconRotate, setIconSize, setIconSpin, setText
 
Methods inherited from class org.gwtbootstrap3.client.ui.base.button.AbstractButton
addClickHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, click, createElement, 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, 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, insert, iterator, remove, 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 com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

AbstractToggleButton

protected AbstractToggleButton()

AbstractToggleButton

protected AbstractToggleButton(ButtonType type)
Method Detail

setToggleCaret

public void setToggleCaret(boolean toggleCaret)
Toggles the display of the caret for the button

Parameters:
toggleCaret - show/hide the caret for the button

setDataToggle

public void setDataToggle(Toggle toggle)
Specifies that this button acts as a toggle, for instance for a parent DropDown or ButtonGroup

Adds a Caret as a child widget.

Specified by:
setDataToggle in interface HasDataToggle
Parameters:
toggle - Kind of toggle

getDataToggle

public Toggle getDataToggle()
Description copied from interface: HasDataToggle
Gets the data-toggle attribute on the widget

Specified by:
getDataToggle in interface HasDataToggle
Returns:
Toggle data-toggle attribute


Copyright © 2015. All rights reserved.