|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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
A mutually-exclusive selection radio button widget.
public class RadioButtonExample implements EntryPoint {
public void onModuleLoad() {
// Make some radio buttons, all in one group.
RadioButton rb0 = new RadioButton("myRadioGroup", "foo");
RadioButton rb1 = new RadioButton("myRadioGroup", "bar");
RadioButton rb2 = new RadioButton("myRadioGroup", "baz");
// Check 'baz' by default.
rb2.setChecked(true);
// Add them to the root panel.
FlowPanel panel = new FlowPanel();
panel.add(rb0);
panel.add(rb1);
panel.add(rb2);
RootPanel.get().add(panel);
}
}
| Constructor Summary | |
RadioButton(java.lang.String group)
Creates a new radio associated with a particular group. |
|
RadioButton(java.lang.String group,
java.lang.String label)
Creates a new radio associated with a particular group, and initialized with the given HTML label. |
|
RadioButton(java.lang.String group,
java.lang.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.CheckBox |
getHTML, getName, getText, isChecked, isEnabled, setChecked, setEnabled, setHTML, setName, setText |
| 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.Widget |
getParent, isAttached, onAttach, onDetach, onLoad, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RadioButton(java.lang.String group)
group - the group with which to associate the radio button
public RadioButton(java.lang.String group,
java.lang.String label)
group - the group with which to associate the radio buttonlabel - this radio button's label
public RadioButton(java.lang.String group,
java.lang.String label,
boolean asHTML)
group - the group with which to associate the radio buttonlabel - this radio button's labelasHTML - true to treat the specified label as HTML
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||