T
- the typepublic interface Property<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
Property.ChangeListener<T>
Listener to observe changes.
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(Property.ChangeListener<T> listener)
Attach a listener.
|
void |
dispose()
Dispose the value.
|
T |
getDefault()
Returns the default value.
|
String |
getName()
Get the name of the property.
|
T |
getValue()
Get the current value.
|
void |
removeChangeListener(Property.ChangeListener<T> listener)
Remove the listener.
|
T |
resetToDefault()
Resets the value to the initial value and returns the new value.
|
void |
setValue(T value)
Set the new value.
|
void setValue(T value)
value
- the valueString getName()
T getValue()
T getDefault()
T resetToDefault()
void dispose()
void addChangeListener(Property.ChangeListener<T> listener)
listener
- the listenervoid removeChangeListener(Property.ChangeListener<T> listener)
listener
- the listenerCopyright © 2018. All rights reserved.