title: Get selected TableRows original index in TableView
body: <p>Is there any way to get the original index of the selected row in TableView before the TableView was sorted or filtered? If not, can I alternatively make my own TableRow object, get it when selected and have a method getOriginalRowIdex() ? </p>
  
  <p>The code <code>tableView.getSelectionModel().getSelectedIndex());</code> returns the selected index according to the sorted and filtered data, which makes matching the row indexes to the indexes in a list not possible. </p>
  
  <pre><code> tableView.setRowFactory(tv -&gt; {
              TableRow&lt;ObservableList&gt; row = new TableRow&lt;&gt;();
              row.setOnMouseClicked(event -&gt; {
                  if (event.getClickCount() == 2 &amp;&amp; (!row.isEmpty())) {
                     label.setText(rowMessages.get(tableView.getSelectionModel().getSelectedIndex()));
  
                      System.out.println(tableView.getSelectionModel().getSelectedIndex());
  
                  }
              });
              return row;
          });
  </code></pre>