|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.extension.gui.dock.preference.AbstractPreference<V> bibliothek.extension.gui.dock.preference.DefaultPreference<V> bibliothek.extension.gui.dock.preference.preferences.DockPropertyPreference<V>
V
- the kind of value this preference usespublic class DockPropertyPreference<V>
A Preference
that can read and write its value from a
DockProperties
.
Constructor Summary | |
---|---|
DockPropertyPreference(DockProperties properties,
PropertyKey<V> key,
Path type,
Path path)
Creates a new preference. |
|
DockPropertyPreference(DockProperties properties,
PropertyKey<V> key,
String label,
Path type,
Path path)
Creates a new preference. |
|
DockPropertyPreference(ResourceBundle bundle,
String prefix,
DockProperties properties,
PropertyKey<V> key,
V defaultValue,
Path type,
Path path)
Creates a new preference. |
Method Summary | |
---|---|
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. |
Methods inherited from class bibliothek.extension.gui.dock.preference.DefaultPreference |
---|
doOperation, getDefaultValue, getDescription, getLabel, getOperations, getPath, getTypePath, getValue, getValueInfo, isEnabled, isNatural, setDefaultValue, setDescription, setLabel, setNatural, setValue, setValueInfo |
Methods inherited from class bibliothek.extension.gui.dock.preference.AbstractPreference |
---|
addPreferenceListener, fireChanged, listeners, removePreferenceListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DockPropertyPreference(DockProperties properties, PropertyKey<V> key, Path type, Path path)
properties
- the properties from which this preference reads its values
and to which it writes its valueskey
- the key of the value this preference reads from a DockProperties
.type
- the type of values used in this preferencepath
- the unique path of this preferencepublic DockPropertyPreference(DockProperties properties, PropertyKey<V> key, String label, Path type, Path path)
properties
- the properties from which this preference reads its values
and to which it writes its valueskey
- the key of the value this preference reads from a DockProperties
.label
- the text associated with this preferencetype
- the type of values used in this preferencepath
- the unique path of this preferencepublic DockPropertyPreference(ResourceBundle bundle, String prefix, DockProperties properties, PropertyKey<V> key, V defaultValue, Path type, Path path)
bundle
- a bundle to read label and description fromprefix
- the prefix of the key for bundle
, the strings
".label" and ".description" will be added to bundle
in order
to generate two keys.properties
- the properties from which this preference reads its values
and to which it writes its valueskey
- the key of the value this preference reads from a DockProperties
.defaultValue
- the initial value of this preferencetype
- the type of values used in this preferencepath
- the unique path of this preferenceMethod Detail |
---|
public void read()
Preference
Preference
should not change its value.
public void write()
Preference
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |