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

There is no way to convert the selected index of a selection model from view scope to model scope

XMLWordPrintable

      tableView.getSelectionModel().getSelectedIndices() returns a list of indices. When i sort the table by clicking on the header of a column the selected index will change because it is defined as the view index and not as the model index. In Swing there are methods to convert between model and view index. This functionality isn't provided by JavaFX until now.

      I tried it with JavaFX 8 build 123

            jgiles Jonathan Giles
            hebbersjfx Hendrik Ebbers (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: