Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8097874

ObservableValue should have a hasListener(listener) method

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 8u20
    • fx2.0.2
    • javafx
    • None

      Sometimes you need to figure out if a listeners is already attached to property/observableValue or not.
      Adding a getListeners() method as suggested in http://javafx-jira.kenai.com/browse/RT-16363 is not an option as internal listeners may be leaked out.
      The alternative would be to add a hasListener(Listener) method.

      This issue was brought forward during informal discussions with the JavaFX team during JavaOne 2012.

            msladecek Martin Sládeček
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: