2015-08-13 23:54:40 +02:00
|
|
|
---
|
|
|
|
layout: pattern
|
|
|
|
title: Model-View-Presenter
|
|
|
|
folder: model-view-presenter
|
2015-08-15 18:03:05 +02:00
|
|
|
permalink: /patterns/model-view-presenter/
|
2015-08-20 21:40:07 +02:00
|
|
|
categories: Presentation Tier
|
2015-12-28 15:52:44 +02:00
|
|
|
tags:
|
|
|
|
- Java
|
|
|
|
- Difficulty-Intermediate
|
2015-08-13 23:54:40 +02:00
|
|
|
---
|
|
|
|
|
2016-01-03 21:14:30 +01:00
|
|
|
## Intent
|
|
|
|
Apply a "Separation of Concerns" principle in a way that allows
|
2015-08-13 23:54:40 +02:00
|
|
|
developers to build and test user interfaces.
|
|
|
|
|
|
|
|

|
|
|
|
|
2016-01-03 21:14:30 +01:00
|
|
|
## Applicability
|
|
|
|
Use the Model-View-Presenter in any of the following
|
2015-08-13 23:54:40 +02:00
|
|
|
situations
|
2015-09-03 16:22:26 +02:00
|
|
|
|
2015-08-13 23:54:40 +02:00
|
|
|
* when you want to improve the "Separation of Concerns" principle in presentation logic
|
2015-08-15 18:03:05 +02:00
|
|
|
* when a user interface development and testing is necessary.
|
2015-09-24 12:23:02 +05:30
|
|
|
|
2016-01-03 21:14:30 +01:00
|
|
|
## Real world examples
|
2015-09-24 12:23:02 +05:30
|
|
|
|
|
|
|
* [MVP4J](https://github.com/amineoualialami/mvp4j)
|