public abstract class DerivedStringProperty<D> extends java.lang.Object implements Property<D>
DynamicStringProperty
.Constructor and Description |
---|
DerivedStringProperty(java.lang.String name,
java.lang.String defaultValue) |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(java.lang.Runnable callback)
Add the callback to be triggered when the value of the property is
changed
|
protected abstract D |
derive(java.lang.String value)
Invoked when property is updated with a new value.
|
D |
get()
Fetches derived value.
|
long |
getChangedTimestamp()
Gets the time (in milliseconds past the epoch) when the property was last
set/changed.
|
D |
getDefaultValue()
Get the default property value specified at creation time
|
java.lang.String |
getName()
Get the name of the property
|
D |
getValue()
Get the latest value for the given property
|
protected void |
propertyChanged()
|
void |
removeAllCallbacks()
Remove all callbacks registered through this instance of property
|
public DerivedStringProperty(java.lang.String name, java.lang.String defaultValue)
public D get()
public D getValue()
Property
public D getDefaultValue()
Property
getDefaultValue
in interface Property<D>
public java.lang.String getName()
Property
public long getChangedTimestamp()
Property
getChangedTimestamp
in interface Property<D>
public void addCallback(java.lang.Runnable callback)
Property
addCallback
in interface Property<D>
public void removeAllCallbacks()
removeAllCallbacks
in interface Property<D>
protected abstract D derive(java.lang.String value)
protected void propertyChanged()