@Override public
void addListener (
InvalidationListener listener)
Implementing: javafx.beans.Observable
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.
@Override public
void addListener (
ChangeListener<? super
String> listener)
Implementing: javafx.beans.value.ObservableValue
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.
@Override public
void dispose ()
@Override
public final String get ()
Implementing: javafx.beans.value.ObservableObjectValue
Returns the result of computeValue()
. The method
computeValue()
is only called if the binding is invalid. The
result is cached and returned if the binding did not become invalid since
the last call of get()
.
Returns: the current value
@Override
public ObservableList<?> getDependencies ()
@Override public final
void invalidate ()
Implementing: javafx.beans.binding.Binding
Mark a binding as invalid. This forces the recalculation of the value of
the Binding
next time it is request.
@Override public final
boolean isValid ()
@Override public
void removeListener (
InvalidationListener listener)
Implementing: javafx.beans.Observable
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.
@Override public
void removeListener (
ChangeListener<? super
String> listener)
Implementing: javafx.beans.value.ObservableValue
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.
@Override
public String toString ()
Overriding: java.lang.Object
Returns a string representation of this StringBinding
object.
Returns: a string representation of this StringBinding
object.