I work with JavaFX since few weeks and after spending long time to deal with tableView & TreeTableView, i come to you to have a better understanding of Cell Factory.
My first question concern the global approach of CellFactory in JavaFX.
Normally a Factory is design to produce different objects with different behavior. But, in JavaFX CellFactory seems to create the same type of Cell for an entire Column...
What this approach respects the Factory Design Pattern ?
If i want to change the behavior of the Cell depending on the content (value) of the Cell, i can't (as I have seen so far).
So my First question is (Drum roll...) :
How can i create custom Cell Factory for each Cell in a Tablecolumn depending on the content of cell ?
Aucun commentaire:
Enregistrer un commentaire