[TFUI] Model-View-Presenter with complex controls.
"moravich" <[email protected]> Tue, 20 Sep 2005 10:44:44 -0000
| Newsgroups | gmane.comp.programming.test-first-user-interfaces |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I'm currently in a project where I have to develop a few UIs with
some controls that are giving me a few problems on how to clear use
them in conjunction with the Model-View-Presenter pattern.
My model has a composition structure that is supposed to be shown in
a TreeView control. I'm using .Net which means that the control has no
data binding capability.
I can see two ways to go.
I could set up a TreeNode property on the View interface and let the
Presenter manipulate it directly. This would let the Presenter provide
more coarse updates to the View, but would increase the coupling
between them.
Or I could pass the Model data to the View and let it build the
interface. This would mean that I would have to create more or less
complex code in the View which is what I'm trying to avoid.
I'm more inclined to go with the first, and sacrifice some coupling
for testability.
Are there better ways to do this?
Best regards,
Artur Jales
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/TestFirstUserInterfaces/
<*> To unsubscribe from this group, send an email to:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/