public class SwingDirectoryPreferenceProperty extends AbstractBasicSimpleEditableChangeableItem implements DirectoryPreferenceProperty, EditablePreferenceProperty
PROPERTY_VALUE
Constructor and Description |
---|
SwingDirectoryPreferenceProperty(java.lang.String basicName,
java.lang.String baseTag,
java.io.File directory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getDirectory()
Get the directory.
|
EditorProvider |
getEditorProvider(java.util.Locale l)
Get the editor components for editing this preference property.
|
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.
|
getBaseTag, getLabelString, getMenuString, getName, getString
addValueChangeListener, addValueChangeListenerWeakly, firePropertyChange, fireValueChange, fireValueChange, fireValueChange, getBasicName, getPropertyName, removeValueChangeListener, removeValueChangeListenerWeakly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
addValueChangeListener, addValueChangeListenerWeakly, removeValueChangeListener, removeValueChangeListenerWeakly
public 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@NotNull public EditorProvider getEditorProvider(@Nullable java.util.Locale l)
getEditorProvider
in interface EditableProperty
l
- locale used for i18npublic java.io.File getDirectory()
getDirectory
in interface DirectoryPreferenceProperty
public void setDirectory(java.io.File directory)
setDirectory
in interface DirectoryPreferenceProperty
directory
- the directory