public class CheckBoxButton extends CheckBox implements HasActive, HasType<ButtonType>, HasSize<ButtonSize>, HasIcon, HasIconPosition
ButtonGroup that has
toggle set to Toogle.BUTTONS.
If you are looking for a classic checkbox see CheckBox.UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledDEBUG_ID_PREFIX| Modifier | Constructor and Description |
|---|---|
|
CheckBoxButton() |
protected |
CheckBoxButton(InputElement element) |
|
CheckBoxButton(SafeHtml label)
Creates a check box button with the specified text label.
|
|
CheckBoxButton(SafeHtml label,
DirectionEstimator directionEstimator)
Creates a check box button with the specified text label.
|
|
CheckBoxButton(SafeHtml label,
HasDirection.Direction dir)
Creates a check box button with the specified text label.
|
|
CheckBoxButton(String label)
Creates a check box button with the specified text label.
|
|
CheckBoxButton(String label,
boolean asHTML)
Creates a check box button with the specified text label.
|
|
CheckBoxButton(String label,
DirectionEstimator directionEstimator)
Creates a label with the specified text and a default direction
estimator.
|
|
CheckBoxButton(String label,
HasDirection.Direction dir)
Creates a check box button with the specified text label.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureDomEventHandlers() |
IconType |
getIcon() |
IconFlip |
getIconFlip() |
IconPosition |
getIconPosition() |
IconRotate |
getIconRotate() |
IconSize |
getIconSize() |
ButtonSize |
getSize()
Get the size of the widget
|
ButtonType |
getType()
Gets the type of the widget
|
boolean |
isActive()
Gets whether or not the widget has the active styles
|
boolean |
isIconBordered() |
boolean |
isIconFixedWidth() |
boolean |
isIconInverse() |
boolean |
isIconPulse() |
boolean |
isIconSpin() |
void |
setActive(boolean active)
Sets the widget with the active styles or not
|
void |
setIcon(IconType iconType) |
void |
setIconBordered(boolean iconBordered) |
void |
setIconFixedWidth(boolean iconFixedWidth) |
void |
setIconFlip(IconFlip iconFlip) |
void |
setIconInverse(boolean iconInverse) |
void |
setIconPosition(IconPosition iconPosition) |
void |
setIconPulse(boolean iconPulse) |
void |
setIconRotate(IconRotate iconRotate) |
void |
setIconSize(IconSize iconSize) |
void |
setIconSpin(boolean iconSpin) |
void |
setSize(ButtonSize size)
Set the size of the widget
|
void |
setType(ButtonType type)
Sets the type on the widget
|
void |
sinkEvents(int eventBitsToAdd) |
addChangeHandler, addValueChangeHandler, asEditor, getDirectionEstimator, getFormValue, getHTML, getName, getTabIndex, getText, getTextDirection, getValue, getWordWrap, isEnabled, onEnsureDebugId, onLoad, onUnload, setAccessKey, setDirectionEstimator, setDirectionEstimator, setEnabled, setFocus, setFormValue, setHTML, setHTML, setName, setTabIndex, setText, setText, setValue, setValue, setWordWrapgetId, getPull, setHiddenOn, setId, setPull, setVisibleOnsetHTMLaddBlurHandler, addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addFocusListener, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getFocusImpl, onAttach, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListeneraddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, removeFromParent, setLayoutData, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfireEventsetHTMLpublic CheckBoxButton(SafeHtml label)
label - the check box's labelpublic CheckBoxButton(SafeHtml label, HasDirection.Direction dir)
label - the check box's labeldir - the text's direction. Note that DEFAULT means
direction should be inherited from the widget's parent
element.public CheckBoxButton(SafeHtml label, DirectionEstimator directionEstimator)
label - the check box's labeldirectionEstimator - A DirectionEstimator object used for automatic direction
adjustment. For convenience,
#DEFAULT_DIRECTION_ESTIMATOR can be used.public CheckBoxButton(String label)
label - the check box's labelpublic CheckBoxButton(String label, HasDirection.Direction dir)
label - the check box's labeldir - the text's direction. Note that DEFAULT means
direction should be inherited from the widget's parent
element.public CheckBoxButton(String label, DirectionEstimator directionEstimator)
label - the check box's labeldirectionEstimator - A DirectionEstimator object used for automatic direction
adjustment. For convenience,
#DEFAULT_DIRECTION_ESTIMATOR can be used.public CheckBoxButton(String label, boolean asHTML)
label - the check box's labelasHTML - true to treat the specified label as htmlpublic CheckBoxButton()
protected CheckBoxButton(InputElement element)
protected void ensureDomEventHandlers()
ensureDomEventHandlers in class CheckBoxpublic void sinkEvents(int eventBitsToAdd)
sinkEvents in class CheckBoxpublic void setSize(ButtonSize size)
HasSizesetSize in interface HasSize<ButtonSize>size - T size of the widgetpublic ButtonSize getSize()
HasSizegetSize in interface HasSize<ButtonSize>public void setType(ButtonType type)
HasTypesetType in interface HasType<ButtonType>type - T typepublic ButtonType getType()
HasTypegetType in interface HasType<ButtonType>public void setActive(boolean active)
HasActivepublic boolean isActive()
HasActivepublic void setIconPosition(IconPosition iconPosition)
setIconPosition in interface HasIconPositionpublic IconPosition getIconPosition()
getIconPosition in interface HasIconPositionpublic void setIconSize(IconSize iconSize)
setIconSize in interface HasIconpublic IconSize getIconSize()
getIconSize in interface HasIconpublic void setIconFlip(IconFlip iconFlip)
setIconFlip in interface HasIconpublic IconFlip getIconFlip()
getIconFlip in interface HasIconpublic void setIconRotate(IconRotate iconRotate)
setIconRotate in interface HasIconpublic IconRotate getIconRotate()
getIconRotate in interface HasIconpublic void setIconBordered(boolean iconBordered)
setIconBordered in interface HasIconpublic boolean isIconBordered()
isIconBordered in interface HasIconpublic void setIconInverse(boolean iconInverse)
setIconInverse in interface HasIconpublic boolean isIconInverse()
isIconInverse in interface HasIconpublic void setIconSpin(boolean iconSpin)
setIconSpin in interface HasIconpublic boolean isIconSpin()
isIconSpin in interface HasIconpublic void setIconPulse(boolean iconPulse)
setIconPulse in interface HasIconpublic boolean isIconPulse()
isIconPulse in interface HasIconpublic void setIconFixedWidth(boolean iconFixedWidth)
setIconFixedWidth in interface HasIconpublic boolean isIconFixedWidth()
isIconFixedWidth in interface HasIconCopyright © 2017. All rights reserved.