pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger and Beth Whitcomb <RogerandB...@rbwhitcomb.com>
Subject Re: Based of Path how to get TreeBranch or TreeNode
Date Thu, 11 Jul 2013 15:39:40 GMT
Ah, then what you would do is this:
treeView.setNodeChecked(leafPath, true);

~Roger

On 7/10/13 11:28 PM, Santosh wrote:
> Hi Roger,
>
> I made a mistake of saying node selection.
> The process you told was working correctly. I see all the leaf nodes are
> selected, under a checked TreeBranch. But this is not exactly what i need.
> As iam using TreeView (Checked - with a Checkbox associated to all the
> nodes), i want the leaf nodes to be checked / unchecked.
>
> As i was able to get the leaf nodes path under a checked TreeBranch as:
>
> for (TreeNode node : branch) {
> 	Sequence.Tree.Path leafPath = Sequence.Tree.pathOf(treeRoot, node);
> 	//treeView.addSelectedPath(leafPath); // This makes the particular leaf
> node selection.
> }
>
> With the leaf node path how to check it or uncheck it.
>
>
>
> -----
> santosh pavan raju
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Based-of-Path-how-to-get-TreeBranch-or-TreeNode-tp4022629p4022633.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
>
>


Mime
View raw message