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

[ListView] ListView.ListViewFocusModel#itemsContentListener is called twice

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 8u40
    • 8u40
    • javafx
    • None

    Description

      While looking into RT-39042 is saw that itemsContentListener is invoked 2 twice for an insert.

      The reason is that:
      a) the focus model itself registers it on the property via updateItemsObserver
      b) itemsProperty in its invalidated property registers it via updateItemsObserver

      2 solutions:
      a) the focus model does not register it
      b) updateItemsObserver also first removes the listener from the newList as well

      Attachments

        Issue Links

          Activity

            People

              jgiles Jonathan Giles
              tschindl Tom Schindl
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: