Uses of Interface
javafx.util.Subscription
Packages that use 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
Methods in javafx.beans that return SubscriptionModifier and TypeMethodDescriptiondefault Subscription
Creates aSubscription
on thisObservable
which callsinvalidationSubscriber
whenever it becomes invalid. -
Uses of Subscription in javafx.beans.value
Methods in javafx.beans.value that return SubscriptionModifier 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
Fields in javafx.util declared as SubscriptionModifier and TypeFieldDescriptionstatic final Subscription
Subscription.EMPTY
An empty subscription.Methods in javafx.util that return SubscriptionModifier 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.Methods in javafx.util with parameters of type SubscriptionModifier 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.