com.google.gwt.user.client.ui
Class RadioButton
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.FocusWidget
com.google.gwt.user.client.ui.ButtonBase
com.google.gwt.user.client.ui.CheckBox
com.google.gwt.user.client.ui.RadioButton
- All Implemented Interfaces:
- EventListener, HasFocus, HasHTML, HasText, SourcesClickEvents, SourcesFocusEvents, SourcesKeyboardEvents
- public class RadioButton
- extends CheckBox
A mutually-exclusive selection radio button widget.
CSS Style Rules
Example
code
|
Constructor Summary |
RadioButton(String group)
Creates a new radio associated with a particular group. |
RadioButton(String group,
String label)
Creates a new radio associated with a particular group, and initialized with
the given HTML label. |
RadioButton(String group,
String label,
boolean asHTML)
Creates a new radio button associated with a particular group, and
initialized with the given label (optionally treated as HTML). |
| Methods inherited from class com.google.gwt.user.client.ui.FocusWidget |
addClickListener, addFocusListener, addKeyboardListener, getTabIndex, onBrowserEvent, removeClickListener, removeFocusListener, removeKeyboardListener, setAccessKey, setFocus, setTabIndex |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
RadioButton
public RadioButton(String group)
- Creates a new radio associated with a particular group. All radio buttons
associated with the same group name belong to a mutually-exclusive set.
- Parameters:
group - the group with which to associate the radio button
RadioButton
public RadioButton(String group,
String label)
- Creates a new radio associated with a particular group, and initialized with
the given HTML label. All radio buttons associated with the same group name
belong to a mutually-exclusive set.
- Parameters:
group - the group with which to associate the radio buttonlabel - this radio button's label
RadioButton
public RadioButton(String group,
String label,
boolean asHTML)
- Creates a new radio button associated with a particular group, and
initialized with the given label (optionally treated as HTML). All radio
buttons associated with the same group name belong to a mutually-exclusive
set.
- Parameters:
group - the group with which to associate the radio buttonlabel - this radio button's labelasHTML - true to treat the specified label as HTML
This javadoc distribution was not produced by Google. The official documentation is here.