public class RadioButtonGroup
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
RadioButtonGroup() |
Modifier and Type | Method and Description |
---|---|
protected void |
add(RadioButton radioButton)
Used to add radio button to group.
|
void |
clearSelection()
Used to deselect all of radio buttons.
|
boolean |
equals(java.lang.Object o) |
java.util.List<RadioButton> |
getRadioButtons()
Returns all radio buttons in group.
|
RadioButton |
getSelection()
Used to get selected radio button.
|
int |
hashCode() |
boolean |
isSelected(RadioButton radioButton)
Returns true if provided radio button selected.
|
protected void |
remove(RadioButton radioButton)
Used to remove radio button to group.
|
void |
setSelection(RadioButton radioButton,
boolean selected)
Used to change selected radio button.
|
java.lang.String |
toString() |
protected void add(RadioButton radioButton)
radioButton
- radio button to add.protected void remove(RadioButton radioButton)
radioButton
- radio button to remove.public RadioButton getSelection()
public void clearSelection()
public void setSelection(RadioButton radioButton, boolean selected)
radioButton
- radio button to select.selected
- flag to set for provider radio button.public boolean isSelected(RadioButton radioButton)
radioButton
- radio button to check.public java.util.List<RadioButton> getRadioButtons()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object