public class BasicPhysicalLengthPreferenceProperty extends AbstractBasicChangeableItem implements PhysicalLengthPreferenceProperty
PhysicalLength preference property.PROPERTY_VALUE| Constructor and Description |
|---|
BasicPhysicalLengthPreferenceProperty(java.lang.String basicName)
Constructor.
|
BasicPhysicalLengthPreferenceProperty(java.lang.String basicName,
PhysicalLength length)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PhysicalLength |
getValue()
Get the value of the property.
|
void |
readFrom(java.util.prefs.Preferences preferences)
Read the property value from the preferences.
|
void |
setValue(PhysicalLength value)
Set the value.
|
void |
storeTo(java.util.prefs.Preferences preferences)
Store the current property value in the preferences.
|
addValueChangeListener, addValueChangeListenerWeakly, firePropertyChange, fireValueChange, fireValueChange, fireValueChange, getBasicName, getPropertyName, removeValueChangeListener, removeValueChangeListenerWeaklyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddValueChangeListener, addValueChangeListenerWeakly, removeValueChangeListener, removeValueChangeListenerWeaklypublic BasicPhysicalLengthPreferenceProperty(@NotNull java.lang.String basicName)
basicName - name or name prefixpublic BasicPhysicalLengthPreferenceProperty(@NotNull java.lang.String basicName, @Nullable PhysicalLength length)
basicName - name or name prefixlength - start length, use null for undefinedpublic void readFrom(@NotNull java.util.prefs.Preferences preferences)
readFrom in interface PreferencePropertypreferences - preferences from where to read the property valuepublic void storeTo(@NotNull java.util.prefs.Preferences preferences)
storeTo in interface PreferencePropertypreferences - preferences where to store the property valuepublic PhysicalLength getValue()
getValue in interface Property<PhysicalLength>public void setValue(PhysicalLength value)
setValue in interface Property<PhysicalLength>value - new value