V
- the kind of value to store into the propertiespublic class ChoiceDockPropertyPreference<V> extends DefaultPreference<java.lang.String>
DockProperties
.Constructor and Description |
---|
ChoiceDockPropertyPreference(DockProperties properties,
PropertyKey<V> key,
Path path,
DefaultChoice<V> choice)
Creates a new preference.
|
Modifier and Type | Method and Description |
---|---|
void |
read()
Uses an unknown source to reload this preference.
|
void |
write()
Stores the contents of this preference at the location where it will
be used.
|
addPreferenceListener, doOperation, getDefaultValue, getDescription, getLabel, getOperations, getPath, getTypePath, getValue, getValueInfo, isEnabled, isNatural, removePreferenceListener, setDefaultValue, setDescription, setDescriptionId, setLabel, setLabelId, setModel, setNatural, setValue, setValueInfo
fireChanged, hasListeners, listeners
public ChoiceDockPropertyPreference(DockProperties properties, PropertyKey<V> key, Path path, DefaultChoice<V> choice)
properties
- the properties to read and write fromkey
- the key for the property that gets accessedpath
- the unique identifier of this preferencechoice
- the available choicespublic void write()
Preference
public void read()
Preference
Preference
should not change its value.