Adds an InvalidationListener
which will be notified whenever the
Observable
becomes invalid. If the same
listener is added more than once, then it will be notified more than
once. That is, no check is made to ensure uniqueness.
Note that the same actual InvalidationListener
instance may be
safely registered for different Observables
.
The Observable
stores a strong reference to the listener
which will prevent the listener from being garbage collected and may
result in a memory leak. It is recommended to either unregister a
listener by calling removeListener(InvalidationListener)
after use or to use an instance of
WeakInvalidationListener
avoid this situation.
Adds a ChangeListener
which will be notified whenever the value
of the ObservableValue
changes. If the same listener is added
more than once, then it will be notified more than once. That is, no
check is made to ensure uniqueness.
Note that the same actual ChangeListener
instance may be safely
registered for different ObservableValues
.
The ObservableValue
stores a strong reference to the listener
which will prevent the listener from being garbage collected and may
result in a memory leak. It is recommended to either unregister a
listener by calling removeListener(ChangeListener)
after use or to use an instance of
WeakChangeListener
avoid this situation.
Create a unidirection binding for this Property
.
Note that JavaFX has all the bind calls implemented through weak listeners. This means the bound property can be garbage collected and stopped from being updated.
Get the wrapped value. This must be identical to
the value returned from getValue()
.
This method exists only to align WritableObjectValue API with
WritableBooleanValue
and subclasses of WritableNumberValue
Can be used to check, if a Property
is bound.
true
if the Property
is bound, false
otherwise
Removes the given listener from the list of listeners, that are notified
whenever the value of the Observable
becomes invalid.
If the given listener has not been previously registered (i.e. it was never added) then this method call is a no-op. If it had been previously added then it will be removed. If it had been added more than once, then only the first occurrence will be removed.
Removes the given listener from the list of listeners, that are notified
whenever the value of the ObservableValue
changes.
If the given listener has not been previously registered (i.e. it was never added) then this method call is a no-op. If it had been previously added then it will be removed. If it had been added more than once, then only the first occurrence will be removed.
Set the wrapped value.
Should be equivalent to setValue(java.lang.Object)
Returns a string representation of this ObjectPropertyBase
object.
ObjectPropertyBase
object.
Remove the unidirectional binding for this Property
.
If the Property
is not bound, calling this method has no effect.
Diagram: ObjectProperty