|
||||||||||
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, getTabIndex, getText, isChecked, isEnabled, onAttach, onDetach, setAccessKey, setChecked, setEnabled, setFocus, setHTML, setName, setTabIndex, setText |
Methods inherited from class com.google.gwt.user.client.ui.FocusWidget |
addClickListener, addFocusListener, addKeyboardListener, getFocusImpl, onBrowserEvent, removeClickListener, removeFocusListener, removeKeyboardListener, setElement |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
getParent, isAttached, onLoad, onUnload, removeFromParent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getTitle, isVisible, isVisible, removeStyleName, resetStyleName, 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 buttonpublic RadioButton(java.lang.String group, java.lang.String label)
group
- the group with which to associate the radio buttonlabel
- this radio button's labelpublic 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 |