问题
Looking at TableCell we can see it has properties for its table view, column and row, but while the TableView
and TableColumn
properties are generic, the one for TableRow
is a raw type, which forces you to cast unnecessarily if you want to use it.
Is there a technical reason for this? Is this an oversight by the designers of JavaFX? A bug perhaps?
来源:https://stackoverflow.com/questions/42553948/why-is-tablecells-tablerow-property-not-generic