mardi 19 avril 2016

MVVM in JavaFX. Controls that have a data model

I defined a TableView in the fxml file, but I can't specify a columns of the table, because the table will have some knowledge of data model and it would violate the MVVM. I created a class that provides a collection of TableColumn and provide a data model. I want to change button state relative to selected item in the table. How to do it without breaking the MVVM rules?

Aucun commentaire:

Enregistrer un commentaire