public class RadioGroup
extends Object
A group can contain only one type of object. It must be
RadioAction
, RadioButton
, RadioMenuItem
or
RadioToolButton
.
Modifier and Type | Class and Description |
---|---|
static interface |
RadioGroup.GroupToggled
Signal that is emitted each time the active action or widget of the
group is changed.
|
Constructor and Description |
---|
RadioGroup() |
Modifier and Type | Method and Description |
---|---|
void |
connect(RadioGroup.GroupToggled handler)
Hook up a handler to the
RadioGroup.GroupToggled signal. |
Object |
getActive()
Indicate which RadioAction or Radio widget in this RadioGroup is
currently selected active.
|
public void connect(RadioGroup.GroupToggled handler)
RadioGroup.GroupToggled
signal.public Object getActive()
This will return null
if no RadioAction or Radio widget is
selected, but note that this is generally indicative of something wrong
with the programming; generally a RadioGroup should always have at
least one RadioAction or Radio widget selected.