pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gkbr...@mac.com>
Subject Re: How to make TreeBranch a parent of another TreeBranch in Java
Date Fri, 06 Aug 2010 21:08:08 GMT
Yes, you can programmatically create instances of org.apache.pivot.wtk.content.TreeNode or
TreeBranch as well.

On Aug 6, 2010, at 5:04 PM, Yunlong Zhao wrote:

> Hi All,
>  
> Is there a way to generate a TreeView which has nested TreeBranch dynamically in Java
like the following static TreeView?
>  
> <TreeBranch  xmlns="org.apache.pivot.wtk.content">
>       <TreeBranch text="Branch1" icon="images/gear-green.gif">
>             <TreeBranch text="Branch2" icon="images/folder-open.png" >
>                   <TreeNode text="Tree node" icon="images/bridge.gif"/>
>             </TreeBranch>
>       </TreeBranch>
> </TreeBranch>
>  
> Thanks,
>  
> Yunlong


Mime
View raw message