docs: add mvp architecture diagram

This commit is contained in:
Ilkka Seppälä
2025-03-06 20:15:11 +02:00
parent d36eeec52c
commit 4a96f2d227
2 changed files with 5 additions and 0 deletions
+5
View File
@@ -43,6 +43,11 @@ Wikipedia says
> Modelviewpresenter (MVP) is a derivation of the modelviewcontroller (MVC) architectural pattern, and is used mostly for building user interfaces. In MVP, the presenter assumes the functionality of the "middle-man". In MVP, all presentation logic is pushed to the presenter.
Architecture diagram
![Model-View-Presenter Architecture Diagram](./etc/mvp-architecture-diagram.png)
## Programmatic Example of Model-View-Presenter Pattern in Java
The Model-View-Presenter (MVP) design pattern is a derivative of the well-known Model-View-Controller (MVC) pattern. It aims to separate the application's logic (Model), GUIs (View), and the way that the user's actions update the application's logic (Presenter). This separation of concerns makes the application easier to manage, extend, and test.
Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB