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.DebugIdImplEnabledDEBUG_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, 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 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 Radiopublic void sinkEvents(int eventBitsToAdd)
sinkEvents in class Radiopublic 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.