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

[ListView] ListView.ListViewFocusModel#itemsContentListener is called twice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u40
    • 8u40
    • javafx
    • None

      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

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

              Created:
              Updated:
              Resolved:
              Imported: