Hugh, the problem in this case is not the tree, but the widget. All the methods like getParent, getChildren etc. could not be overwritten without breaking the whole widget stuff. This is definitely a point which should made be better with 0.8. But until then I don't see much room for improvements, because many of them just will break the current widget system.
Greetings, Sebastian Am 12.02.2007 um 22:52 schrieb Hugh Gibson: > > 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. > > Then I discovered the getContainer method which lists the *folder* > children of a tree node, and getParentFolder(). So I have a working > function to get the next node, but it's not nice. > > The API needs some serious cleaning up. For example, what meaning > does "getContainer" have? Nothing for the casual user of the API. > And what about getItems? Nothing as well. What are the items? What > does the container contain? This seems like the worst sort of code > produced by our Chinese programmers... > > A set of APIs like the normal ones for traversing parents/children, > but with "Folder" appended, would do the job. > > So: getNextSiblingFolder, getChildrenFolders, getFirstChildFolder etc. > > Even better, remap *all* the normal API functions to work on > folders. A casual user of the tree doesn't want to know about the > implementation details of how the tree is created, but they are > concerned about the folders and their relationship with other folders. > > Derrell, I hope you've done some work on this with the tree virtual > stuff... > > Hugh > > ---------------------------------------------------------------------- > --- > 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 ------------------------------------------------------------------------- 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
