Top Description Methods
javafx.beans

public Interface WeakListener

Known Direct Implementers
javafx.beans.property.BooleanPropertyBase.Listener, javafx.beans.property.DoublePropertyBase.Listener, javafx.beans.property.FloatPropertyBase.Listener, javafx.beans.property.IntegerPropertyBase.Listener, javafx.beans.property.ListPropertyBase.Listener, javafx.beans.property.LongPropertyBase.Listener, javafx.beans.property.MapPropertyBase.Listener, javafx.beans.property.ObjectPropertyBase.Listener, javafx.beans.property.SetPropertyBase.Listener, javafx.beans.property.StringPropertyBase.Listener, javafx.beans.value.WeakChangeListener, javafx.collections.WeakListChangeListener, javafx.collections.WeakMapChangeListener, javafx.collections.WeakSetChangeListener, com.sun.javafx.binding.BidirectionalBinding, com.sun.javafx.binding.BidirectionalContentBinding.ListContentBinding, com.sun.javafx.binding.BidirectionalContentBinding.SetContentBinding, com.sun.javafx.binding.BidirectionalContentBinding.MapContentBinding, com.sun.javafx.binding.BindingHelperObserver, com.sun.javafx.binding.ContentBinding.ListContentBinding, com.sun.javafx.binding.ContentBinding.SetContentBinding, com.sun.javafx.binding.ContentBinding.MapContentBinding, com.sun.javafx.property.adapter.ReadOnlyPropertyDescriptor.ReadOnlyListener, javafx.beans.WeakInvalidationListener

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, javafx.beans.value.WeakChangeListener

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the linked listener was garbage-collected.
wasGarbageCollected
()

Returns true if the linked listener was garbage-collected.

Method Detail

wasGarbageCollectedback to summary
public boolean wasGarbageCollected()

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

Returns:boolean

true if the linked listener was garbage-collected.