Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The view primarily describes the layout of the UI and declares the handlers of the relevant user action events such as clicks, key presses and drag & drops.
  • The presenter acts as a delegate of the view when executing the business logic of user events, for example, when interacting with the back end / DB or fetching the data that needs to be displayed in the view. Normally, each view would use its own presenter and would not show it to the outer outside world. In some cases, when the view is simple enough, no presenter may be needed at all.
  • The model keeps the state of the view such as the current selection, the filters or toggles. Both the view and the presenter may have access to the model and may mutate it arbitrarily. However, when it comes to modifications done by the presenter, it is important to resolve synchronization of such view changes.

...