36 * For an in-depth explanation of invalidation events and how they differ from
37 * change events, see the documentation of {@code ObservableValue}.
38 * <p>
39 * The same instance of {@code InvalidationListener} can be registered to listen
40 * to multiple {@code Observables}.
41 *
42 * @see Observable
43 * @see ObservableValue
44 *
45 *
46 * @since JavaFX 2.0
47 */
48 @FunctionalInterface
49 public interface InvalidationListener {
50
51 /**
52 * This method needs to be provided by an implementation of
53 * {@code InvalidationListener}. It is called if an {@link Observable}
54 * becomes invalid.
55 * <p>
56 * In general is is considered bad practice to modify the observed value in
57 * this method.
58 *
59 * @param observable
60 * The {@code Observable} that became invalid
61 */
62 public void invalidated(Observable observable);
63 }
|
36 * For an in-depth explanation of invalidation events and how they differ from
37 * change events, see the documentation of {@code ObservableValue}.
38 * <p>
39 * The same instance of {@code InvalidationListener} can be registered to listen
40 * to multiple {@code Observables}.
41 *
42 * @see Observable
43 * @see ObservableValue
44 *
45 *
46 * @since JavaFX 2.0
47 */
48 @FunctionalInterface
49 public interface InvalidationListener {
50
51 /**
52 * This method needs to be provided by an implementation of
53 * {@code InvalidationListener}. It is called if an {@link Observable}
54 * becomes invalid.
55 * <p>
56 * In general, it is considered bad practice to modify the observed value in
57 * this method.
58 *
59 * @param observable
60 * The {@code Observable} that became invalid
61 */
62 public void invalidated(Observable observable);
63 }
|