pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gkbr...@mac.com>
Subject Re: dynamic treeview example
Date Mon, 15 Feb 2010 12:47:33 GMT
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


Mime
View raw message