MVP with complex controls
- From: "tailorma_de" <tailormade@xxxxxxx>
- Date: 29 Jun 2006 02:54:25 -0700
Hi NG,
I started to use the MVP pattern. I've read Martin Fowlers well-known
article. His provided example is understandable so far. However, I
don't understand how to deal with more sophisticated controls.
E.g. just a tree view is much more complex to control as a check box.
But that's something what I have already accomplished. What I have done
here is that I created a presenter and a view for nodes. With this I
can display and control a hierarchical structure in the model. So well,
this is done. I think such standard controls are manageable somehow.
But what is with more complex controls? And in particular what is with
reusable controls that resides in a library? How could I design such a
library so that it fits into the MVP concept? And what is with third
party libraries? How do I use them correctly?
As an example one could consider the Ablum Window of M. Fowlers article
as an own component which is supposed be included into an larger
application.
I could imagine if I have a third party component with an UI control
and that comes with a certain API. This API could offer some abstract
classes which have to be implemented in my app. Is it correct that in
this case the library must be referenced by the view and the presenter?
Hm, but this would make the view and the presenter very dependant on
each other. Is this okay?
What do you think?
Greetings from Austria,
Robert
.
- Follow-Ups:
- Re: MVP with complex controls
- From: Daniel T.
- Re: MVP with complex controls
- Prev by Date: Re: Object identity
- Next by Date: Re: Object identity
- Previous by thread: XPDay 6 London, 27 - 28 November 2006 -- call for sessions
- Next by thread: Re: MVP with complex controls
- Index(es):
Relevant Pages
|