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