T
- The content typepublic static class AbstractToStringProperty.ChildProperty<T> extends AbstractToStringProperty<T>
AbstractToStringProperty.ChildProperty<T>
AbstractProperty.InvalidPreferenceValueException, AbstractProperty.ValueChangeEvent<T>, AbstractProperty.ValueChangeListener<T>
Modifier and Type | Field and Description |
---|---|
private AbstractToStringProperty<T> |
parent |
defaultValue, key, preferences
Constructor and Description |
---|
ChildProperty(AbstractToStringProperty<T> parent,
java.lang.String key) |
Modifier and Type | Method and Description |
---|---|
protected void |
addListenerImpl(PreferenceChangedListener adapter) |
CachingProperty<T> |
cached()
Creates a new
CachingProperty instance for this property. |
protected T |
fromString(java.lang.String string)
Converts the string to an object of the given type.
|
T |
getDefaultValue()
Replies the default value of this property.
|
protected void |
removeListenerImpl(PreferenceChangedListener adapter) |
protected void |
storeDefaultValue()
Store the default value to the preferences.
|
protected java.lang.String |
toString(T t)
Converts the string to an object of the given type.
|
get, getAsString, getChildProperty, getSpecialized, put
addListener, addWeakListener, equals, getKey, getPreferences, hashCode, isSet, remove, removeListener
private final AbstractToStringProperty<T> parent
ChildProperty(AbstractToStringProperty<T> parent, java.lang.String key)
protected void storeDefaultValue()
AbstractProperty
storeDefaultValue
in class AbstractProperty<T>
public T getDefaultValue()
AbstractProperty
getDefaultValue
in class AbstractProperty<T>
protected T fromString(java.lang.String string)
AbstractToStringProperty
fromString
in class AbstractToStringProperty<T>
string
- The stringprotected java.lang.String toString(T t)
AbstractToStringProperty
toString
in class AbstractToStringProperty<T>
t
- The object.protected void addListenerImpl(PreferenceChangedListener adapter)
addListenerImpl
in class AbstractProperty<T>
protected void removeListenerImpl(PreferenceChangedListener adapter)
removeListenerImpl
in class AbstractProperty<T>
public CachingProperty<T> cached()
AbstractProperty
CachingProperty
instance for this property.cached
in class AbstractProperty<T>