On the topic of trees, I discovered early-on that the root TreeBranch wont display. After looking through the source for TreeView I saw this note in getTreeData() "This list represents the root set of items displayed by the tree and will never itself be painted."
I think the online docs/tutorial should mention this so newbies wont be surprised and know that it's intentional. Just a thought. Bob On Mon, Feb 15, 2010 at 6:47 AM, Greg Brown <[email protected]> wrote: > TreeViews are simply backed by plain old list data. As you add and remove > elements to and from the list, the tree view will update automatically. > Pivot provides a default branch class called TreeBranch: > > > http://pivot.apache.org/1.4/docs/api/org/apache/pivot/wtk/content/TreeBranch.html > > and a default leaf class called TreeNode: > > > http://pivot.apache.org/1.4/docs/api/org/apache/pivot/wtk/content/TreeNode.html > > This application shows an example of dynamically constructing a tree based > on JSON data: > > > http://svn.apache.org/repos/asf/pivot/trunk/tools/src/org/apache/pivot/tools/json/JSONViewer.java > > Hope this helps, > Greg > > On Feb 15, 2010, at 12:35 AM, Pivot-Steven Dahlin wrote: > > > Are there any examples available showing the user of a treeview which is > built dynamically? > > > > Thanks > >
