Uses of Interface
javafx.util.Subscription
Package
Description
The package
javafx.beans
contains the interfaces that
define the most generic form of observability.The package
javafx.beans.value
contains the two
fundamental interfaces ObservableValue
and WritableValue
and all of its sub-interfaces.Contains various utilities and helper classes.
-
Uses of Subscription in javafx.beans
Modifier and TypeMethodDescriptiondefault Subscription
Creates aSubscription
on thisObservable
which callsinvalidationSubscriber
whenever it becomes invalid. -
Uses of Subscription in javafx.beans.value
Modifier and TypeMethodDescriptiondefault Subscription
ObservableValue.subscribe
(BiConsumer<? super T, ? super T> changeSubscriber) Creates aSubscription
on thisObservableValue
which calls the givenchangeSubscriber
with the old and new value whenever its value changes.default Subscription
Creates aSubscription
on thisObservableValue
which immediately provides the current value to the givenvalueSubscriber
, followed by any subsequent values whenever its value changes. -
Uses of Subscription in javafx.util
Modifier and TypeFieldDescriptionstatic final Subscription
Subscription.EMPTY
An empty subscription.Modifier and TypeMethodDescriptiondefault Subscription
Subscription.and
(Subscription other) Combines thisSubscription
with the givenSubscription
and returns a newSubscription
which will cancel both when cancelled.static Subscription
Subscription.combine
(Subscription... subscriptions) Returns aSubscription
which combines all of the given subscriptions.Modifier and TypeMethodDescriptiondefault Subscription
Subscription.and
(Subscription other) Combines thisSubscription
with the givenSubscription
and returns a newSubscription
which will cancel both when cancelled.static Subscription
Subscription.combine
(Subscription... subscriptions) Returns aSubscription
which combines all of the given subscriptions.