On 09/04/2011 20:23, Dave Keighan wrote:
> I'm mapping the OID to OID, Names to Names and Owner.OID to Owner.
>
> I expect it is something dead simple that I am missing - it usually is.
>
> Anyone ??? I'm stumped. Thanks.
>From memory, I tried doing that with Auto-Mapping about 3 years ago, and
as usual I couldn't get it to work. That's my general experience with
anything auto-mapping related. :)
I do have a recursive tree/node design in our application though (with
unlimited nodes and tree depth), and we have it working with hard-coded
visitors. We use the "Treeview build visitor" to construct our treeview
in the GUI. The Treeview build visitor is not a mediator though, so the
internal object structure is not observed. Instead we simply notify the
treeview build visitor to rebuild the tree when needed, and we reselect
the last selected node afterwards. In fact, we actually have two tree
build visitors. On for a desktop GUI application using a treeview
component, and one for a CGI (HTML) apps using tables and CSS to mimic a
treeview component.
The big difference between the tiTreeview (and VT version), and the
"treeview build visitor", is that the latter allows you to exclude the
list classes/properties from the treeview. Something I couldn't manager
in the tiTreeview component. If you search the newsgroup history, you
should be able to find my discussion on this.
eg:
Model Model
+ SomeListProp vs + SomeModel
+ SomeModel + SomeModel
| + SomeListProp + SomeModel
| + SomeModel
+ SomeModel
An observable treeview mediator for desktop gui apps are on my todo
list, but that is a monster to implement, and I just haven't had the
time yet.
--
Graeme.
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
tiOPF-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tiopf-talk