2015-08-13 23:54:40 +02:00
|
|
|
---
|
|
|
|
layout: pattern
|
|
|
|
title: Model-View-Controller
|
|
|
|
folder: model-view-controller
|
2015-08-15 18:03:05 +02:00
|
|
|
permalink: /patterns/model-view-controller/
|
2015-08-20 21:40:07 +02:00
|
|
|
categories: Presentation Tier
|
|
|
|
tags: Java
|
2015-08-13 23:54:40 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
**Intent:** Separate the user interface into three interconnected components:
|
|
|
|
the model, the view and the controller. Let the model manage the data, the view
|
|
|
|
display the data and the controller mediate updating the data and redrawing the
|
|
|
|
display.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
**Applicability:** Use the Model-View-Controller pattern when
|
|
|
|
|
2015-08-15 18:03:05 +02:00
|
|
|
* you want to clearly separate the domain data from its user interface representation
|
2015-09-03 18:17:07 +05:30
|
|
|
|
|
|
|
**Credits:**
|
|
|
|
|
|
|
|
* [Trygve Reenskaug - Model-view-controller](http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller)
|