public static final class GeneiousPreferences.GeneiousDependentPreference extends GeneiousPreferences.GeneiousPreference
GeneiousPreferences.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 the dependentPreferences and the controlPreference
regardless of the enabled state.| Modifier and Type | Field and Description |
|---|---|
GeneiousPreferences.GeneiousPreference |
controlPreference
The preference whos selected value determines the enabled state of the
dependentPreferences. |
GeneiousPreferences.GeneiousPreference[] |
dependentPreferences
The preferences which are enabled or disabled depending on the value of the
controlPreference |
List |
enableValues
The set of values for which the
controlPreference must be in one of for the dependentPreferences to be
enabled. |
| Constructor and Description |
|---|
GeneiousPreferences.GeneiousDependentPreference(String code,
String name,
GeneiousPreferences.GeneiousPreference[] dependentPreferences,
GeneiousPreferences.GeneiousPreference controlPereference,
List<String> enableValues) |
addChangelistener, getCode, getName, isProOnly, removeChangeListener, setProOnlypublic final GeneiousPreferences.GeneiousPreference[] dependentPreferences
controlPreferencepublic final GeneiousPreferences.GeneiousPreference controlPreference
dependentPreferences.public final List enableValues
controlPreference must be in one of for the dependentPreferences to be
enabled. use "true" or "false" for check box.public GeneiousPreferences.GeneiousDependentPreference(String code, String name, GeneiousPreferences.GeneiousPreference[] dependentPreferences, GeneiousPreferences.GeneiousPreference controlPereference, List<String> enableValues)
code - GeneiousPreferences.GeneiousPreference.codename - GeneiousPreferences.GeneiousPreference.namedependentPreferences - dependentPreferencescontrolPereference - controlPreferenceenableValues - enableValues