Interface Observable
- All Superinterfaces:
Guardian, javafx.beans.Observable
- All Known Subinterfaces:
Binding<T>, ObservableList<E>, ObservableValue<T>, Property<T>, SuspendableList<E>
- All Known Implementing Classes:
BooleanBinding, BooleanPropertyBase, DoubleBinding, DoublePropertyBase, FloatBinding, FloatPropertyBase, IntegerBinding, IntegerPropertyBase, LongBinding, LongPropertyBase, ObjectBinding, ObjectPropertyBase, ObservableValueBase, ReadOnlyBooleanPropertyBase, ReadOnlyBooleanWrapper, ReadOnlyDoublePropertyBase, ReadOnlyDoubleWrapper, ReadOnlyFloatPropertyBase, ReadOnlyFloatWrapper, ReadOnlyIntegerPropertyBase, ReadOnlyIntegerWrapper, ReadOnlyLongPropertyBase, ReadOnlyLongWrapper, ReadOnlyObjectPropertyBase, ReadOnlyObjectWrapper, ReadOnlyStringPropertyBase, ReadOnlyStringWrapper, SimpleBooleanProperty, SimpleDoubleProperty, SimpleFloatProperty, SimpleIntegerProperty, SimpleLongProperty, SimpleObjectProperty, SimpleStringProperty, StringBinding, StringPropertyBase, SuspendableListWrapper
Deprecated.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionblock()Deprecated.Prevents invalidation and change events from being emitted, until the returned guard is released.default voidDeprecated.Runs the given computation, making sure the invalidation and change events are blocked.default <T> TblockWhile(Supplier<T> f) Deprecated.Runs the given computation, making sure the invalidation and change events are blocked.default Guardguard()Deprecated.Equivalent toblock().Methods inherited from interface Guardian
guardWhile, guardWhileMethods inherited from interface javafx.beans.Observable
addListener, removeListener
-
Method Details
-
block
Guard block()Deprecated.Prevents invalidation and change events from being emitted, until the returned guard is released.- Returns:
- a
Guardinstance that can be released to resume the delivery of invalidation and change events. If this observable has been invalidated one or more times before the guard is released, a single notification is passed to invalidation and change listeners of this observable. The returnedGuardisAutoCloseable, which makes it convenient to use in try-with-resources.
-
guard
-
blockWhile
Deprecated.Runs the given computation, making sure the invalidation and change events are blocked. When done, previous blocked state is restored.Equivalent to
try(Guard g = block()) { r.run(); } -
blockWhile
Deprecated.Runs the given computation, making sure the invalidation and change events are blocked. When done, previous blocked state is restored.T t = this.blockWhile(f);
is equivalent toT t; try(Guard g = block()) { t = f.get(); }
-
Suspendable.