χρήστης
συνθηματικό
θυμήσου με
 
 
asdf
2010-08-28 19:38
Title
2010-08-16 00:37
new event
2010-08-15 23:21
bla
2010-08-15 23:19
Test New Page
2010-08-11 22:00
 
new news item test
2009-11-19 17:34
 
admin

lkjhlkjhljhljhlkjh
Helsinki , τρελη πίτα
από admin admin στις 2010-08-28 19:38
asfasfasf
bla
από admin admin στις 2010-08-15 23:19
x x x x x x x x x x x 
από admin admin στις 2010-08-11 22:00
This is a new test page. 
από admin admin στις 2010-07-30 22:10 tags τρελη πίτα , Helsinki
No content
από admin admin στις 2010-06-25 12:30
Hanya test saja
από admin admin στις 2010-06-02 17:39
testtt
από admin admin στις 2010-05-18 11:30
asdfasdfasdfasfdasfd
από admin admin στις 2010-04-27 15:36
TEST TEST
από admin 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.