@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 invalidSubmit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.