|
SpringGUI
introduction download reference examples faq
Reference
Name
|
getSelectedRadiobutton()
|
Examples
|
// assuming a group named "myGroup" of Radiobuttons named "myButton1", "myButton2",...
// this will fork between different possible selections.
String selected = gui.getSelectedRadiobutton("myGroup");
if ( selected.equals("myButton1") ) {
// do something...
} else if ( selected.equals("myButton2") ) {
// do something else...
} else if ( selected.equals("myButton3") ) {
// do something else altogether...
}
|
Description
|
Returns the name of the selected Radiobutton in a group.
|
Syntax
|
String selected = gui.getSelectedRadiobutton(group);
|
Parameters
|
String group
|
The name of the group of Radiobuttons to query. Only one Radiobutton per group can be selected at a time.
|
|
Returns
|
The name of the selected Radiobutton in the group, if the group exists and a Radiobutton is currently selected. null otherwise.
|
Related
|
getState(), setState()
addRadiobutton()
table of events
|
back to the top of the page
|
| |
| | |