from
admin on 2011-03-09 12:50
from
admin on 2010-08-11 22:00
This is a new test page.
from
admin on 2009-11-15 11:38
Pattern description
Model-view-presenter is a user interface design pattern engineered to facilitate automated unit testing and improve the separation of concerns in presentation logic.
- The model is an interface defining the data to be displayed or otherwise acted upon in the user interface.
- The view is an interface that displays data (the model) and routes user commands to the presenter to act upon that data.
- The presenter acts upon the model and the view. It retrieves data from repositories, persists it, manipulates it, and determines how it will be displayed in the view.
Normally, the view implementation instantiates the concrete presenter object, providing a reference to itself. The following C# code demonstrates a simple view constructor, where ConcreteDomainPresenter implements the IDomainPresenter interface:
public class DomainView: IDomainView
{
private IDomainPresenter mDomainPresenter;
public DomainView()
{
this.mDomainPresenter = new ConcreteDomainPresenter(this);
}
}
The degree of logic permitted in the view varies among different implementations.
from
admin on 2009-06-16 22:47
This is a new page and I'm trying out the WYSIWYG editor.

