| 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
RadioButton | public class RadioButton extends CheckBox (Code) | | A mutually-exclusive selection radio button widget.
CSS Style Rules
Example
|
Constructor Summary | |
public | RadioButton(String name) Creates a new radio associated with a particular group name. | public | RadioButton(String name, String label) Creates a new radio associated with a particular group, and initialized
with the given HTML label. | public | 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). |
Method Summary | |
public void | setName(String name) Change the group name of this radio button. |
RadioButton | public RadioButton(String name)(Code) | | Creates a new radio associated with a particular group name. All radio
buttons associated with the same group name belong to a mutually-exclusive
set.
Radio buttons are grouped by their name attribute, so changing their
name using the setName() method will also change their associated
group.
Parameters: name - the group name with which to associate the radio button |
RadioButton | public RadioButton(String name, String label)(Code) | | 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.
Radio buttons are grouped by their name attribute, so changing their
name using the setName() method will also change their associated
group.
Parameters: name - the group name with which to associate the radio button Parameters: label - this radio button's label |
RadioButton | public RadioButton(String name, String label, boolean asHTML)(Code) | | 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.
Radio buttons are grouped by their name attribute, so changing their
name using the setName() method will also change their associated
group.
Parameters: name - name the group with which to associate the radio button Parameters: label - this radio button's label Parameters: asHTML - true to treat the specified label as HTML |
setName | public void setName(String name)(Code) | | Change the group name of this radio button.
Radio buttons are grouped by their name attribute, so changing their
name using the setName() method will also change their associated
group.
If changing this group name results in a new radio group with
multiple radio buttons selected, this radio button will remain
selected and the other radio buttons will be unselected.
Parameters: name - name the group with which to associate the radio button |
|
|