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.
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.
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.
Signals to the JavaFX property that it will not be used anymore and any references can be removed. A call of this method usually results in the property stopping to observe the Java Bean property by unregistering its listener(s).
This method can be called to notify the adapter of a change of the Java Bean value, if the Java Bean property is not bound (i.e. it does not support PropertyChangeListeners).
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
Returns the Object that contains this property. If this property
is not contained in an Object, null is returned.
Object or null
Returns the name of this property. If the property does not have a name,
this method returns an empty String.
String
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 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.
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.
Set the wrapped value.
Should be equivalent to setValue(java.lang.Object)
Returns a string representation of this JavaBeanObjectProperty object.
JavaBeanObjectProperty object.
Remove the unidirectional binding for this Property.
If the Property is not bound, calling this method has no effect.
Diagram: ObjectProperty