Property.ChangeListener<T>
Constructor and Description |
---|
ImmutableProperty(String name,
T immutableValue)
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 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 listenerpublic String getName()
Property
public T getDefault()
Property
getDefault
in interface Property<T>
public T resetToDefault()
Property
resetToDefault
in interface Property<T>
Copyright © 2017. All rights reserved.