Property.ChangeListener<T>
Constructor and Description |
---|
SimpleProperty(String name,
T defaultValue)
The constructor.
|
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.
|
public void setValue(T value)
Property
public String getName()
Property
public T getDefault()
Property
getDefault
in interface Property<T>
public T resetToDefault()
Property
resetToDefault
in interface Property<T>
public void dispose()
Property
public void addChangeListener(Property.ChangeListener<T> listener)
Property
addChangeListener
in interface Property<T>
listener
- the listenerpublic void removeChangeListener(Property.ChangeListener<T> listener)
Property
removeChangeListener
in interface Property<T>
listener
- the listenerCopyright © 2019. All rights reserved.