docs: add presentation model architecture diagram

This commit is contained in:
Ilkka Seppälä
2025-03-11 21:42:12 +02:00
parent 8a2c779809
commit fbde0090a0
2 changed files with 5 additions and 0 deletions
+5
View File
@@ -29,6 +29,11 @@ In plain words
> The Presentation Model design pattern separates the UI logic from the business logic by creating an intermediate model that represents the data and behavior of the UI independently, enhancing testability, maintainability, and flexibility.
Architecture diagram
![Presentation Model Architecture Diagram](./etc/presentation-model-architecture-diagram.png)
## Programmatic Example of Presentation Model Pattern in Java
The Presentation Model design pattern is a pattern that separates the responsibility of managing the state and behavior of the GUI in a separate model class. This model class is not tied to the view and can be used to test the GUI behavior independently of the GUI itself.
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB