Spec-Zone.ru › OpenJavaFX 11
Module javafx.base
Package javafx.beans

Interface WeakListener

  • 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

    All MethodsInstance MethodsAbstract Methods
    Modifier and Type Method Description
    boolean wasGarbageCollected()
    Returns true if the linked listener was garbage-collected.
  • Method Detail

    • 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.

© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API