public static final class GeneiousPreferences.GeneiousRadioButtonPreference extends GeneiousPreferences.GeneiousPreference
| Modifier and Type | Field and Description |
|---|---|
List<String> |
values
A list of values, each of which will be displayed as a RadioButton in a set of RadioButtons.
|
| Constructor and Description |
|---|
GeneiousPreferences.GeneiousRadioButtonPreference(String code,
String name,
String[] values,
String defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentValue() |
void |
setCurrentValue(String currentValue)
This change will be
reflected in the preference dialog of the program.
|
addChangelistener, getCode, getName, isProOnly, removeChangeListener, setProOnlypublic GeneiousPreferences.GeneiousRadioButtonPreference(String code, String name, String[] values, String defaultValue)
code - GeneiousPreferences.GeneiousPreference.codename - GeneiousPreferences.GeneiousPreference.namevalues - possible for this preference valuesdefaultValue - default value for this preference. This is used when the user has not previously
set a value for this preference. The RadioButton representing the default value will be
selected in that case.public String getCurrentValue()
public void setCurrentValue(String currentValue)
currentValue - the current value of this preference.