public class SimpleDirectoryPreferenceProperty extends AbstractBasicChangeableItem implements DirectoryPreferenceProperty
PROPERTY_VALUE
Constructor and Description |
---|
SimpleDirectoryPreferenceProperty(java.lang.String basicName)
Constructor.
|
SimpleDirectoryPreferenceProperty(java.lang.String basicName,
java.io.File directory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getDirectory()
Get the directory.
|
void |
readFrom(java.util.prefs.Preferences preferences)
Read the property value from the preferences.
|
void |
setDirectory(java.io.File directory)
Set the directory.
|
void |
storeTo(java.util.prefs.Preferences preferences)
Store the current property value in the preferences.
|
addValueChangeListener, addValueChangeListenerWeakly, firePropertyChange, fireValueChange, fireValueChange, fireValueChange, getBasicName, getPropertyName, removeValueChangeListener, removeValueChangeListenerWeakly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addValueChangeListener, addValueChangeListenerWeakly, removeValueChangeListener, removeValueChangeListenerWeakly
public SimpleDirectoryPreferenceProperty(@NotNull java.lang.String basicName)
basicName
- name or name prefixpublic java.io.File getDirectory()
getDirectory
in interface DirectoryPreferenceProperty
public void setDirectory(java.io.File directory)
setDirectory
in interface DirectoryPreferenceProperty
directory
- new directorypublic void readFrom(@NotNull java.util.prefs.Preferences preferences)
readFrom
in interface PreferenceProperty
preferences
- preferences from where to read the property valuepublic void storeTo(@NotNull java.util.prefs.Preferences preferences)
storeTo
in interface PreferenceProperty
preferences
- preferences where to store the property value