- All Known Implementing Classes:
WeakChangeListener,WeakInvalidationListener,WeakListChangeListener,WeakMapChangeListener,WeakSetChangeListener
public interface WeakListener
WeakListener is the super interface of all weak listener implementations
in the JavaFX API. Usually it should not be used directly, but instead one of the
sub-interfaces will be used.- Since:
- JavaFX 2.1
- See Also:
WeakInvalidationListener,WeakChangeListener
-
Method Summary
Modifier and Type Method Description booleanwasGarbageCollected()Returnstrueif the linked listener was garbage-collected.
-
Method Details
-
wasGarbageCollected
boolean wasGarbageCollected()Returnstrueif the linked listener was garbage-collected. In this case, the listener can be removed from the observable.- Returns:
trueif the linked listener was garbage-collected.
-