Skip to content

Commit 47907cb

Browse files
author
Stamatis Pitsios
committed
Update README.md
1 parent f970a76 commit 47907cb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,15 @@
189189
* a snapshot of an object's state must be saved so that it can be restored to that state later, and
190190
* a direct interface to obtaining the state would expose implementation details and break the object's encapsulation
191191

192+
##Model-View-Presenter
193+
**Intent:** Apply a "Separation of Concerns" principle in a way that allows developers to build and test user interfaces.
194+
195+
![alt text](https://github.com/pitsios-s/java-design-patterns/blob/master/model-view-presenter/etc/model-view-presenter.jpg "Model-View-Presenter")
196+
197+
**Applicability:** Use the Model-View-Presenter in any of the following situations
198+
* when you want to improve the "Separation of Concerns" principle in presentation logic
199+
* when a user interface development and testing is necessary.
200+
192201
##Observer
193202
**Intent:** Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
194203

0 commit comments

Comments
 (0)