vendredi 29 mai 2015

Javaxfx: MVP (Supervising Controller) must view keep reference to presenter(controller)

I want to implement MVP (Supervising Controller) with javafx. I've studied several examples in internet and saw that view keep reference to presenter. Is this right? I thought that view should not know about presenter at all. There is biderectional data binding between view and model VIEW<->MODEL although view doesn't keep reference to model. And presenter (controller) which knows about view (but works with view via interface) and model and handles all events. Model knows neither view nor presenter.

Aucun commentaire:

Enregistrer un commentaire