Package javafx.beans

Interface WeakListener

All Known Implementing Classes:
BidirectionalBinding, BidirectionalBinding.StringConversionBidirectionalBinding, WeakChangeListener, WeakInvalidationListener, WeakListChangeListener

public interface WeakListener
WeakListener is the super interface of all weak listener implementations JavaFX runtime. Usually it should not be used directly, but instead one of the sub-interfaces will be used.
Since:
JavaFX 2.1
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the linked listener was garbage-collected.
  • Method Details

    • wasGarbageCollected

      boolean wasGarbageCollected()
      Returns true if the linked listener was garbage-collected. In this case, the listener can be removed from the observable.
      Returns:
      true if the linked listener was garbage-collected.