public class GGRadioButtonGroup
extends java.lang.Object
Constructor and Description |
---|
GGRadioButtonGroup()
Creates a GGRadioButtonGroup instance that contains no button.
|
GGRadioButtonGroup(GGRadioButton... radioButtons)
Creates a GGRadionButton instance that contains the given GGRadioButtons.
|
Modifier and Type | Method and Description |
---|---|
void |
add(GGRadioButton... radioButtons)
Adds the given GGRadioButtons to the group.
|
void |
add(GGRadioButton radioButton)
Adds the given GGRadioButton to the group.
|
void |
addRadioButtonListener(GGRadioButtonListener listener)
Registers the given GGRadioButtonListener to get notifications when
the currently selected button changes because the user clicks another button.
|
java.util.ArrayList<GGRadioButton> |
getButtons()
Returns a list of all buttons added to the group.
|
GGRadioButton |
getSelectedButton()
Returns the currently selected button.
|
int |
getSelectedButtonId()
Returns the id of the currently selected button.
|
public GGRadioButtonGroup()
public GGRadioButtonGroup(GGRadioButton... radioButtons)
radioButtons
- the GGRadioButtons to be added to the grouppublic void add(GGRadioButton... radioButtons)
radioButtons
- the GGRadioButtons to be added to the grouppublic void add(GGRadioButton radioButton)
radioButton
- the GGRadioButton to be added to the grouppublic GGRadioButton getSelectedButton()
public int getSelectedButtonId()
public java.util.ArrayList<GGRadioButton> getButtons()
public void addRadioButtonListener(GGRadioButtonListener listener)
listener
- the GGRadioButtonListener to register