Hi Sandro ,
I was looking on the example ,
i trying to loop through all treeview elements ,But iam not able to get all
tree node as follows .
could you please help
List<?> sf = treeView1.getTreeData();
for(Object obj : sf)
{
TreeBranch branch = (TreeBranch) obj;
System.out.println(branch.getText());
for(int i=0; i<branch.getLength(); i++)
{
System.out.println(branch.get(i).getText());
}
//System.out.println(branch.get(0).getText());
//System.out.println(tree.toString());
}
On Mon, Dec 19, 2011 at 9:22 PM, Sandro Martini <[email protected]>wrote:
> Hi,
> under the tests subproject (in trunk) you can find some minimal sample
> of different usage of TreeView in this package:
> org.apache.pivot.tests.issues
>
> Note that they are our minimal tests to look at related JIRA issues
> (some resolved, others not) ...
>
> Bye
>