"Hugh Gibson" <[EMAIL PROTECTED]> writes: > I had a need to find the next folder in a tree after a given folder today. > > I thought it would be fairly straightforward, and started using getParent, > getNextSibling etc. but soon hit the problem mentioned in December on the > list about what the correct API was. The obvious functions get things like > the labels and so on which should be hidden - an implementation detail. > > Derrell, I hope you've done some work on this with the tree virtual stuff...
In TreeVirtual, you deal with the relationships in the data model, so it's completely different than the widget relationships of Tree and TreeFullControl. In TreeVirtual, it's easy to get the "node" object of the current node. One of the properties of a node is parentNodeId which can be used to easily locate the parent node. Another property of a node is a children array, which is the list of node ids which are children of this node. All pretty easy, but definitely a different paradigm. Cheers, Derrell ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
