Package org.reactfx.inhibeans
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 void
Deprecated.Runs the given computation, making sure the invalidation and change events are blocked.default <T> T
blockWhile
(Supplier<T> f) Deprecated.Runs the given computation, making sure the invalidation and change events are blocked.default Guard
guard()
Deprecated.Equivalent toblock()
.Methods inherited from interface org.reactfx.Guardian
guardWhile, guardWhile
Methods 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
Guard
instance 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 returnedGuard
isAutoCloseable
, which makes it convenient to use in try-with-resources.
-
guard
Deprecated.Equivalent toblock()
. -
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
.