|
SpringGUI
introduction download reference examples faq
Reference
Name
|
getState(), setState()
|
Examples
|
// If Checkbox 1 is unchecked, check Checkbox 2.
if ( !gui.getState("Checkbox1") ) {
gui.setState("Checkbox2", true);
}
|
Description
|
getState queries whether a Checkbox or Radiobutton is checked.
setState sets this attribute. Only one Radiobutton in a group can be checked.
|
Syntax
|
boolean result = gui.getState(name);
gui.setState(name, value);
|
Parameters
|
String name
|
The name of the element.
|
boolean value
|
The new state of the element.
|
|
Returns
|
getState():
true if the element can be found and is checked.
setState():
true if the element can be found.
|
Related
|
getSelectedRadiobutton()
|
back to the top of the page
|
| |
| | |