T
- Type of the property valuepublic class StringDerivedProperty<T> extends PropertyWrapper<T>
Modifier and Type | Field and Description |
---|---|
protected <any> |
decoder |
defaultValue, prop
Constructor and Description |
---|
StringDerivedProperty(java.lang.String propName,
T defaultValue,
<any> decoder)
Create an instance of the property wrapper.
|
Modifier and Type | Method and Description |
---|---|
T |
getValue()
Get current typed value of the property.
|
protected void |
propertyChanged()
Called when the property value is updated.
|
addCallback, addValidator, getChangedTimestamp, getDefaultValue, getDynamicProperty, getName, propertyChanged, registerSubClassWithNoCallback, removeAllCallbacks, toString, validate
public StringDerivedProperty(java.lang.String propName, T defaultValue, <any> decoder)
decoder
- the function used to parse the string format into the desired data type.protected final void propertyChanged()
PropertyWrapper
propertyChanged
in class PropertyWrapper<T>
public T getValue()
PropertyWrapper