Package dev.zemco.codegame.presentation
Interface IListenerSubscription
public interface IListenerSubscription
Provides a simple way to manage an existing subscription to a JavaFX
observable.
This interface was created to abstract away management of listeners used by the controllers.
Currently, this includes unsubscribing from an observable,
as JavaFX doesn't use weak references for this type of subscriptions.- Author:
- Erik Zemčík
-
Method Summary
Modifier and TypeMethodDescriptionvoidUnsubscribes from theobservableby removing the backing listener.
-
Method Details
-
unsubscribe
void unsubscribe()Unsubscribes from theobservableby removing the backing listener. We recommend implementation through theObservableValue.removeListener(ChangeListener)method.
-