title: Javafx, get the object referenced by a TableCell
body: <p>I have the following Callback listening on the selected Cell of a TableView:</p>
  
  <pre><code>        Callback&lt;TableColumn&lt;MyFTPFile,String&gt;, TableCell&lt;MyFTPFile,String&gt;&gt; cellFactory =
              new Callback&lt;TableColumn&lt;MyFTPFile,String&gt;, TableCell&lt;MyFTPFile,String&gt;&gt;() {
                  public TableCell&lt;MyFTPFile,String&gt; call(TableColumn&lt;MyFTPFile,String&gt; p) {
                      TableCell&lt;MyFTPFile,String&gt; cell = new TableCell&lt;MyFTPFile, String&gt;() {
                          @Override
                          public void updateItem(String item, boolean empty) {
                              super.updateItem(item, empty);
                              setText(empty ? null : getString());
                              setGraphic(null);
                          }
  
                          private String getString() {
                              return getItem() == null ? "" : getItem().toString();
                          }
                      };
  
                      cell.addEventFilter(MouseEvent.MOUSE_CLICKED, new EventHandler&lt;MouseEvent&gt;() {
                          @Override
                          public void handle(MouseEvent event) {
                              if (event.getClickCount() &gt; 1) {
                                  TableCell&lt;MyFTPFile,String&gt; c = (TableCell&lt;MyFTPFile,String&gt;) event.getSource();
  
  
                                  ftpObservablelist = MyFTPClient.getInstance().getFtpObservableList(); 
                                  ftpTable.setItems(ftpObservablelist);
  
                              }
                          }
                      });
  </code></pre>
  
  <p>Now, I would like to get the MyFTPFile object which is referenced by the cell, which is doubleclicked, so that i can pass it to another class and do stuff... Any Idea how to do that???</p>
  
  <p>Thanks in advance.</p>