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 Type
    Method
    Description
    void
    Unsubscribes from the observable by removing the backing listener.
  • Method Details

    • unsubscribe

      void unsubscribe()
      Unsubscribes from the observable by removing the backing listener. We recommend implementation through the ObservableValue.removeListener(ChangeListener) method.