Update athen how to correctly write your own view authored by Markus Krug's avatar Markus Krug
...@@ -308,5 +308,7 @@ This class follows strictly the previously introduced concept of having a method ...@@ -308,5 +308,7 @@ This class follows strictly the previously introduced concept of having a method
On all those buttons, a selectionlistener is added. Thanks to Java8 this can be done in a very clean fashion. And all those handler should do, is to call a method in the controller! The controller takes care of the rest. On all those buttons, a selectionlistener is added. Thanks to Java8 this can be done in a very clean fashion. And all those handler should do, is to call a method in the controller! The controller takes care of the rest.
Following this paradigm, the model will never appear in the UI composites, and the UI only delegates everything that needs some thinking right to the controller. I encourage you to make use of