public class SimpleShortPreferenceProperty extends SimpleShortProperty implements ShortPreferenceProperty
PROPERTY_VALUE
Constructor and Description |
---|
SimpleShortPreferenceProperty(java.lang.String basicName)
Constructor.
|
SimpleShortPreferenceProperty(java.lang.String basicName,
int initialValue)
Convenience constructor.
|
SimpleShortPreferenceProperty(java.lang.String basicName,
short value)
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, setValue, setValue
addValueChangeListener, addValueChangeListenerWeakly, firePropertyChange, fireValueChange, fireValueChange, fireValueChange, getBasicName, getPropertyName, removeValueChangeListener, removeValueChangeListenerWeakly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setValue
addValueChangeListener, addValueChangeListenerWeakly, removeValueChangeListener, removeValueChangeListenerWeakly
public SimpleShortPreferenceProperty(@NotNull java.lang.String basicName)
basicName
- basic property name or prefixpublic SimpleShortPreferenceProperty(@NotNull java.lang.String basicName, int initialValue)
basicName
- basic property name or prefixinitialValue
- initialValue, only the lower 8 bits are usedpublic SimpleShortPreferenceProperty(@NotNull java.lang.String basicName, short value)
basicName
- name or name prefixvalue
- initial 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