I'm having a bit of difficulty writing some code to traverse a
CellTree. Here is my goal:

1. I want to first close all of the TreeNodes in the CellTree. There
doesn't seem to be an efficient way to do this besides literally
looping through the entire tree structure.

2. I have a separate model for the tree in memory and I I want to open
the tree all the way up to a particular node. For example:

If my tree was

A->B->D->F
  ->C->E->G

And I wanted it to open to node D, I would close all of the nodes, and
then open A and B (making D visible).

----

This would seem simple enough, but it is giving me a lot of trouble.
My tree model can easily just return a list of all the parent nodes
leading up to the node I want to open. The problem is, the TreeNode
object doesn't really contain any relevant information for me to tell
which node is which.

3. The tree is in a ScrollPanel and I want to have it scroll so that
the Node from #2 is in view.

Any suggestions of how to do this would be greatly appreciated!

Thanks,

Andrew Arnott

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to