This content has been marked as final. Show 2 replies
It's hard (but not impossible, I suppose) to envisage a scenario where you wouldn't be able to get the value by some other, more immediate, logic. (You presumably know what the particular column is displaying, which table it's attached to, and what the items are for that table...). But to answer the question as stated, I suppose you could do something like
I haven't tested this. It seems very backwards to me: effectively using the view (table view and table column) to access the model (the data).
TableColumn column = // the column ; int rowIndex = // the index of the row for which you want the value ; TableView table = column.getTableView(); Object item = table.getItems().get(rowIndex); TableColumn.CellDataFeatures cdf = new TableColumn.CellDataFeatures(table, column, item); Object cellValue = column.getCellValueFactory().call(cdf);
Thanks will give it a go