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

TableViewSelectionModel.getSelectedIndices() returns duplicates when cell selection enabled

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u15
    • Fix Version/s: 8
    • Component/s: javafx

      Description

      When cellSelectionEnabled is true, and multiple cells in a single row are selected, the List returned from getSelectedIndices() will contain an index for each selected cell, not row.

      Thus, for instance, if I have a single cell selected in the first row, and three cells selected in the second row, the List returned will be [0, 1, 1, 1]. I would only expect to find [0, 1]. Per cell selection queries should use getSelectedCells().

      getSelectedItems() also displays this behavior.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jgiles Jonathan Giles
              Reporter:
              eheumannjfx Eric Heumann (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:
                Imported: