@FunctionalInterface public interface InvalidationListener
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.
Observable,
ObservableValue| Modifier and Type | Method and Description |
|---|---|
void |
invalidated(Observable observable)
This method needs to be provided by an implementation of
InvalidationListener. |
void invalidated(Observable observable)
InvalidationListener. It is called if an Observable
becomes invalid.
In general is is considered bad practice to modify the observed value in this method.
observable - The Observable that became invalidCopyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.