public class RadioButton extends Radio implements HasActive, HasType<ButtonType>, HasSize<ButtonSize>, HasIcon, HasIconPosition
ButtonGroup
that has
toggle set to Toogle.BUTTONS
.
If you are looking for a classic radio button see RadioButton
.UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_ID_PREFIX
Modifier | Constructor and Description |
---|---|
protected |
RadioButton(InputElement element) |
|
RadioButton(String name) |
|
RadioButton(String name,
SafeHtml label)
Creates a new radio associated with a particular group, and initialized
with the given HTML label.
|
|
RadioButton(String name,
SafeHtml label,
DirectionEstimator directionEstimator) |
|
RadioButton(String name,
SafeHtml label,
HasDirection.Direction dir) |
|
RadioButton(String name,
String label)
Creates a new radio associated with a particular group, and initialized
with the given HTML label.
|
|
RadioButton(String name,
String label,
boolean asHTML)
Creates a new radio button associated with a particular group, and
initialized with the given label (optionally treated as HTML).
|
|
RadioButton(String name,
String label,
DirectionEstimator directionEstimator) |
|
RadioButton(String name,
String label,
HasDirection.Direction dir) |
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, 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 RadioButton(String name, SafeHtml label)
name
- the group name with which to associate the radio buttonlabel
- this radio button's html labelpublic RadioButton(String name, SafeHtml label, HasDirection.Direction dir)
name
- the group name with which to associate the radio buttonlabel
- this radio button's html labeldir
- the text's direction. Note that DEFAULT
means
direction should be inherited from the widget's parent
element.#RadioButtonToggle(String, SafeHtml)
public RadioButton(String name, SafeHtml label, DirectionEstimator directionEstimator)
name
- the group name with which to associate the radio buttonlabel
- this radio button's html labeldirectionEstimator
- A DirectionEstimator object used for automatic direction
adjustment. For convenience,
#DEFAULT_DIRECTION_ESTIMATOR
can be used.#RadioButtonToggle(String, SafeHtml)
public RadioButton(String name, String label)
name
- the group name with which to associate the radio buttonlabel
- this radio button's labelpublic RadioButton(String name, String label, HasDirection.Direction dir)
name
- the group name with which to associate the radio buttonlabel
- this radio button's labeldir
- the text's direction. Note that DEFAULT
means
direction should be inherited from the widget's parent
element.#RadioButtonToggle(String, SafeHtml)
public RadioButton(String name, String label, DirectionEstimator directionEstimator)
name
- the group name with which to associate the radio buttonlabel
- this radio button's labeldirectionEstimator
- A DirectionEstimator object used for automatic direction
adjustment. For convenience,
#DEFAULT_DIRECTION_ESTIMATOR
can be used.#RadioButtonToggle(String, SafeHtml)
public RadioButton(String name, String label, boolean asHTML)
name
- name the group with which to associate the radio buttonlabel
- this radio button's labelasHTML
- true
to treat the specified label as HTML@UiConstructor public RadioButton(String name)
protected RadioButton(InputElement element)
protected void ensureDomEventHandlers()
ensureDomEventHandlers
in class Radio
public void sinkEvents(int eventBitsToAdd)
sinkEvents
in class Radio
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.