Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これは簡単な質問に思えますが、tableColumn.setCellFactory を使用してセルの表示テキストを変更するため (メソッドを使用して実際の値から目的のテキストに変換するため)、表示テキストではなく、セルの実際の値のみを取得できます。セルには、表示テキストと実際の値の 2 つの値があります。再変換できますが、それはばかげた解決策です:(
cell = t.getColumns().get(col).getCellData(row);
getItems() メソッドを使用して、テーブルのモデルにアクセスできます。行 ID に基づいて、その行の DataModel を取得できます。
tblSampleTable.getItems().get(rowId);
つまり、DataModel への参照があるということは、すべてのデータ (実際のデータ) にアクセスできるということです。