- All Known Implementing Classes:
WeakInvalidationListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An
InvalidationListener
is notified whenever an
Observable
becomes invalid. It can be registered and
unregistered with Observable.addListener(InvalidationListener)
respectively Observable.removeListener(InvalidationListener)
.
For an in-depth explanation of invalidation events and how they differ from
change events, see the documentation of ObservableValue
.
The same instance of InvalidationListener
can be registered to listen
to multiple Observables
.
- Since:
- JavaFX 2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
invalidated
(Observable observable) This method needs to be provided by an implementation ofInvalidationListener
.
-
Method Details
-
invalidated
This method needs to be provided by an implementation ofInvalidationListener
. It is called if anObservable
becomes invalid.In general, it is considered bad practice to modify the observed value in this method.
- Parameters:
observable
- TheObservable
that became invalid
-