από
admin στις 2010-08-11 22:00
This is a new test page.
No content
από
admin στις 2010-06-25 12:30
Hanya test saja
από
admin στις 2010-05-18 11:30
asdfasdfasdfasfdasfd
από
admin στις 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.
