Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>A presenter should be thought of as "autonomous state" in the presentation tier. This means that it is responsible for ensuring that the view's presentation of the model's state is in sync. The reason I bring this up is because the "pattern" of MVP often gets lost in the dogmatic view of <em>how</em> things should be separated. It seems that this is one reason Martin Fowler decided to try to <a href="http://martinfowler.com/eaaDev/ModelViewPresenter.html" rel="noreferrer">clarify the terminology around the MVP</a> pattern.</p> <p>My favored flavor of MVP is the <a href="http://martinfowler.com/eaaDev/PassiveScreen.html" rel="noreferrer">passive view</a>, so my answer is based off of that.</p> <p>I implement composite user controls and forms very often using the passive view pattern. There are essentially 3 different configurations:</p> <ol> <li>One presenter for all user controls in the hierarchy. Flatten the view using an interface.</li> <li>One presenter for each user control in the composite tree. Each parent presenter is responsible for instantiating and initializing its child presenters. The user controls are created at design time, and are able to function without a presenter (with no presentation behavior)</li> <li>One presenter for each user control in the composite tree. All of the presenters are loosely coupled through a higher level controller class. The controller class is responsible for construcing the presenter, wiring them up, and coordinating their events.</li> </ol> <p>Although it is a solution of last resort for me (because of its complexity), I think that the last option is the solution that you are looking for.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload