Spec-Zone .ru
спецификации, руководства, описания, API
|
public interface InvalidationListener
InvalidationListener
is notified whenever an
ObservableValue
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 ObservableValues
.
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 ObservableValue
becomes invalid.
In general is is considered bad practice to modify the observed value in this method.
observable
- The ObservableValue
that became invalidCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to