34 | | The Controller part is represented by the Logics. We have !AppLogic, !BookLogic, !PageLogic and !FrameLogic. At this point we have only a !TextFrameLogic instead of three !FrameLogics(for Text, Image and Media) but three Logics will be provided later. While one can create instances of the model and view (Books, Pages, Frames, !AppViews, !BookViews, !PageViews etc.), the Logics are singletons which means that they have only one instance which is used to control the instances of the model. The only instance of a Logic is the one invoked by the View. This means that if we have multiple BookViews, we use only one BookLogic to apply changes to the Books. Logics are entirely and only used to control the model and change it. They '''do not have state'''. By convention, the names of the methods which control the Model should start with "user" and continue with an explanation of what the method changes or does. Example: (method which is part of the !PageLogic and serves to create a Frame on a certain point on the screen)[[BR]] |
| 34 | The Controller part is represented by the Logics. We have !AppLogic, !BookLogic, !PageLogic and !FrameLogic. At this point we have only a !TextFrameLogic instead of three !FrameLogics(for Text, Image and Media) but three Logics will be provided later. While one can create instances of the model and view (Books, Pages, Frames, !AppViews, !BookViews, !PageViews etc.), the Logics are singletons which means that they have only one instance which is used to control the instances of the model. The only instance of a Logic is the one invoked by the View. This means that if we have multiple !BookViews, we use only one !BookLogic to apply changes to the Books. Logics are entirely and only used to control the model and change it. They '''do not have state'''. By convention, the names of the methods which control the Model should start with "user" and continue with an explanation of what the method changes or does. Example: (method which is part of the !PageLogic and serves to create a Frame on a certain point on the screen)[[BR]] |