Class GeneiousPreferences.GeneiousComboBoxPreference
- java.lang.Object
-
- com.biomatters.geneious.publicapi.plugin.GeneiousPreferences.GeneiousPreference
-
- com.biomatters.geneious.publicapi.plugin.GeneiousPreferences.GeneiousComboBoxPreference
-
- Enclosing interface:
- GeneiousPreferences
public static final class GeneiousPreferences.GeneiousComboBoxPreference extends GeneiousPreferences.GeneiousPreference
A preference for specifying one of a set of values. Displayed to the user as a combo box.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<java.lang.Object>
values
A list of values, each of which will be displayed as an item in a combo box.
-
Constructor Summary
Constructors Constructor Description GeneiousComboBoxPreference(java.lang.String code, java.lang.String name, java.lang.Object[] values, java.lang.Object defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getCurrentValue()
void
setCurrentValue(java.lang.Object currentValue)
This change will be reflected in the preference dialog of the program.-
Methods inherited from class com.biomatters.geneious.publicapi.plugin.GeneiousPreferences.GeneiousPreference
addChangelistener, getCode, getName, isProOnly, removeChangeListener, setProOnly
-
-
-
-
Constructor Detail
-
GeneiousComboBoxPreference
public GeneiousComboBoxPreference(java.lang.String code, java.lang.String name, java.lang.Object[] values, java.lang.Object defaultValue)
- Parameters:
code
-GeneiousPreferences.GeneiousPreference.code
name
-GeneiousPreferences.GeneiousPreference.name
values
- the possible values for this preferencevalues
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.
-
-
Method Detail
-
getCurrentValue
public java.lang.Object getCurrentValue()
- Returns:
- the current value of this preference
-
setCurrentValue
public void setCurrentValue(java.lang.Object currentValue)
This change will be reflected in the preference dialog of the program. Use this if a plugin changes its own preferences independently of the preferences dialog in the program.- Parameters:
currentValue
- the current value of this preference.
-
-