com.google.gwt.user.client.ui
Class RadioButton

java.lang.Object
  extended bycom.google.gwt.user.client.ui.UIObject
      extended bycom.google.gwt.user.client.ui.Widget
          extended bycom.google.gwt.user.client.ui.FocusWidget
              extended bycom.google.gwt.user.client.ui.ButtonBase
                  extended bycom.google.gwt.user.client.ui.CheckBox
                      extended bycom.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


Field Summary
 
Fields inherited from class java.lang.Object
typeId, typeName
 
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.CheckBox
getHTML, getText, isChecked, isEnabled, setChecked, setEnabled, setHTML, 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
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, hashCode
 

Constructor Detail

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 button
label - 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 button
label - this radio button's label
asHTML - true to treat the specified label as HTML


This javadoc distribution was not produced by Google. The official documentation is here.