Re: Model-View-Presenter (MVP) question



Hi Kaspar,

Microsoft has a library with an MVC implementation :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/uipab.asp
and a Composite UI Application Block
http://www.gotdotnet.com/codegallery/CodeGallery.aspx?id=22f72167-af95-44ce-a6ca-f2eafbf2653c.

Sun has documentation of its Swing architecture :
http://java.sun.com/products/jfc/tsc/articles/architecture/
IBM has an alternative for Swing : http://www.eclipse.org/swt/
The Microsoft, Sun and IBM links might be usefull to see 'real'
examples of MVC and not so MVC ;-).
As far as I know, the Swing architecture 'solves' some issues with
MVC (from the Sun link ):

================================================================
Early on, MVC was a logical choice for Swing because it provided a
basis for meeting the first three of our design goals within the bounds
of the latter two.

The first Swing prototype followed a traditional MVC separation in
which each component had a separate model object and delegated its
look-and-feel implementation to separate view and controller objects.

The delegate
We quickly discovered that this split didn't work well in practical
terms because the view and controller parts of a component required a
tight coupling (for example, it was very difficult to write a generic
controller that didn't know specifics about the view). So we collapsed
these two entities into a single UI (user-interface) object, ...
================================================================

If you need any more information, please feel free to contact me.

succes,
Bart

http://www.xenopz.com/blog/bartdeboeck/

.