public class SimpleStringPreferenceProperty extends SimpleNullableProperty<java.lang.String> implements StringPreferenceProperty
PROPERTY_VALUE
Constructor and Description |
---|
SimpleStringPreferenceProperty(java.lang.String basicName)
Constructor.
|
SimpleStringPreferenceProperty(java.lang.String basicName,
java.lang.String value)
Constructor.
|
SimpleStringPreferenceProperty(java.lang.String basicName,
java.lang.String value,
UniformMatcher<? super java.lang.String> matcher)
Constructor.
|
SimpleStringPreferenceProperty(java.lang.String basicName,
UniformMatcher<? super java.lang.String> matcher)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
readFrom(java.util.prefs.Preferences preferences)
Read the property value from the preferences.
|
void |
storeTo(java.util.prefs.Preferences preferences)
Store the current property value in the preferences.
|
getValue, setValue
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 SimpleStringPreferenceProperty(@NotNull java.lang.String basicName)
Object.equals(Object)
method
and an initial value of null
.basicName
- property namepublic SimpleStringPreferenceProperty(@NotNull java.lang.String basicName, @Nullable java.lang.String value)
Object.equals(Object)
method.basicName
- property namevalue
- initial valuepublic SimpleStringPreferenceProperty(@NotNull java.lang.String basicName, @NotNull UniformMatcher<? super java.lang.String> matcher)
null
.basicName
- property namematcher
- matcher which defines whether a newly set value differs from the current valuepublic SimpleStringPreferenceProperty(@NotNull java.lang.String basicName, @Nullable java.lang.String value, @NotNull UniformMatcher<? super java.lang.String> matcher)
basicName
- property namevalue
- initial valuematcher
- matcher which defines whether a newly set value differs from the current valuepublic 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