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.DebugIdImplEnabled
DEBUG_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, setWordWrap
getId, getPull, setHiddenOn, setId, setPull, setVisibleOn
setHTML
addBlurHandler, 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, removeMouseWheelListener
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, removeFromParent, setLayoutData, unsinkEvents
addStyleDependentName, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
setHTML
public 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 CheckBox
public void sinkEvents(int eventBitsToAdd)
sinkEvents
in class CheckBox
public void setSize(ButtonSize size)
HasSize
setSize
in interface HasSize<ButtonSize>
size
- T size of the widgetpublic ButtonSize getSize()
HasSize
getSize
in interface HasSize<ButtonSize>
public void setType(ButtonType type)
HasType
setType
in interface HasType<ButtonType>
type
- T typepublic ButtonType getType()
HasType
getType
in interface HasType<ButtonType>
public void setActive(boolean active)
HasActive
public boolean isActive()
HasActive
public void setIconPosition(IconPosition iconPosition)
setIconPosition
in interface HasIconPosition
public IconPosition getIconPosition()
getIconPosition
in interface HasIconPosition
public void setIconSize(IconSize iconSize)
setIconSize
in interface HasIcon
public IconSize getIconSize()
getIconSize
in interface HasIcon
public void setIconFlip(IconFlip iconFlip)
setIconFlip
in interface HasIcon
public IconFlip getIconFlip()
getIconFlip
in interface HasIcon
public void setIconRotate(IconRotate iconRotate)
setIconRotate
in interface HasIcon
public IconRotate getIconRotate()
getIconRotate
in interface HasIcon
public void setIconBordered(boolean iconBordered)
setIconBordered
in interface HasIcon
public boolean isIconBordered()
isIconBordered
in interface HasIcon
public void setIconInverse(boolean iconInverse)
setIconInverse
in interface HasIcon
public boolean isIconInverse()
isIconInverse
in interface HasIcon
public void setIconSpin(boolean iconSpin)
setIconSpin
in interface HasIcon
public boolean isIconSpin()
isIconSpin
in interface HasIcon
public void setIconPulse(boolean iconPulse)
setIconPulse
in interface HasIcon
public boolean isIconPulse()
isIconPulse
in interface HasIcon
public void setIconFixedWidth(boolean iconFixedWidth)
setIconFixedWidth
in interface HasIcon
public boolean isIconFixedWidth()
isIconFixedWidth
in interface HasIcon
Copyright © 2017. All rights reserved.