I'm trying to convert my OpenLaszlo application from using a list to
display items, to using a tree to display items.  I have a need to
select items programatically.  With a List, I can do things like
'selectItemAt(number)', but there doesn't seem to be any similar
capability to do such a thing with a tree.  I could roll my own
selection mechanism if I knew how to find a particular leaf item which
may exist in a (potentially arbitrarily nested) tree structure.  I've
been inspecting the tree object, but I'm having trouble coming up with a
generic way to locate all leaf nodes which reside under a root tree
item.

My first question is, am I overlooking some pre-built functionality
which would allow me to find a leaf node and programmatically select it?
 If such a thing doesn't exist, can someone explain how trees are
structured (how are leaf nodes different from non-leaf nodes, for
example?)

Any tips or pointers to existing documentation/code would be most
appreciated.

Thanks!
-- 
  James Howe
  [EMAIL PROTECTED]


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to