Model View Presenter

ModelViewPresenter(TM) is a derivative of the ModelViewController Pattern. Its aim is to provide a cleaner implementation of the Observer connection between Application Model and view.

This Pattern was devised by Taligent; the original paper is at

(The above http/html link has rotted. Even the old Wayback Machine link, , fails to provide a working link to grab the article.)

You can download the above paper directly at

It is used in the DolphinSmalltalk System and they have a lot of good documentation on it. is an introduction and relates ModelViewPresenter to ModelViewController.

It's also interesting to constrast this discussion with the DocumentView Architecture, and FourLayerArchitecture.

For a lengthy explanation with Java examples, see , though it's not a typical pure MVP.
MVP actually names more than 3 classes. In summary, they are: Breaking an application down in this way tends to give a good SeparationOfConcerns, and hence good reuse of the various pieces.*

A variant of MVP is PresenterFirst approach.
The Presenter is NOT an instance of the MediatorPattern. This is also true of ModelViewController. In MVC and MVP, the GUI/View , Presenter/Controller, and Model are drawn as a triad. While the Model is loosely coupled to the View (it only knows the View as an Observer type), the View, however is more tighly coupled with the Model in order to be able to pull values from it. To reduce this coupling, you could create a Facade of the Model that only exposes methods to obtain values that the View requires (and hide methods that modify the Model, as that is the Controller's job), but it is still somewhat tightly coupled.

See for a description of the PresentationAbstractionControl that uses the MediatorPattern. In PAC, the View and Model and completely decoupled (at least in this particular description).

If I have learned anything though, it's that one paper, article or book's idea of MVC, PAC or MVP differs from the next. Everyone has a different idea of how they should work and which objects may access what, and how.

View edit of December 14, 2013 or FindPage with title or text search