Class GeneiousPreferences.GeneiousDependentPreference
- java.lang.Object
-
- com.biomatters.geneious.publicapi.plugin.GeneiousPreferences.GeneiousPreference
-
- com.biomatters.geneious.publicapi.plugin.GeneiousPreferences.GeneiousDependentPreference
-
- Enclosing interface:
- GeneiousPreferences
public static final class GeneiousPreferences.GeneiousDependentPreference extends GeneiousPreferences.GeneiousPreference
A preference which itself contains a list ofGeneiousPreferences.GeneiousPreference
. This allows a set of preferences to be enabled/disabled depending on the state of one master preference. Eg. If a "use proxy connection" check box is selected then enable the "proxy host" and "proxy port" text fields. Otherwise they should be disabled. IMPORTANT:GeneiousPreferences.setValue(java.lang.String, java.lang.String)
is not called for GeneiousDependentPreferences. It will be called for each of thedependentPreferences
and thecontrolPreference
regardless of the enabled state.
-
-
Field Summary
Fields Modifier and Type Field Description GeneiousPreferences.GeneiousPreference
controlPreference
The preference whos selected value determines the enabled state of thedependentPreferences
.GeneiousPreferences.GeneiousPreference[]
dependentPreferences
The preferences which are enabled or disabled depending on the value of thecontrolPreference
java.util.List
enableValues
The set of values for which thecontrolPreference
must be in one of for thedependentPreferences
to be enabled.
-
Constructor Summary
Constructors Constructor Description GeneiousDependentPreference(java.lang.String code, java.lang.String name, GeneiousPreferences.GeneiousPreference[] dependentPreferences, GeneiousPreferences.GeneiousPreference controlPereference, java.util.List<java.lang.String> enableValues)
-
Method Summary
-
Methods inherited from class com.biomatters.geneious.publicapi.plugin.GeneiousPreferences.GeneiousPreference
addChangelistener, getCode, getName, isProOnly, removeChangeListener, setProOnly
-
-
-
-
Field Detail
-
dependentPreferences
public final GeneiousPreferences.GeneiousPreference[] dependentPreferences
The preferences which are enabled or disabled depending on the value of thecontrolPreference
-
controlPreference
public final GeneiousPreferences.GeneiousPreference controlPreference
The preference whos selected value determines the enabled state of thedependentPreferences
.
-
enableValues
public final java.util.List enableValues
The set of values for which thecontrolPreference
must be in one of for thedependentPreferences
to be enabled. use "true" or "false" for check box.
-
-
Constructor Detail
-
GeneiousDependentPreference
public GeneiousDependentPreference(java.lang.String code, java.lang.String name, GeneiousPreferences.GeneiousPreference[] dependentPreferences, GeneiousPreferences.GeneiousPreference controlPereference, java.util.List<java.lang.String> enableValues)
- Parameters:
code
-GeneiousPreferences.GeneiousPreference.code
name
-GeneiousPreferences.GeneiousPreference.name
dependentPreferences
-dependentPreferences
controlPereference
-controlPreference
enableValues
-enableValues
-
-