hi,
maybe you can use this code, try it and make me know:

final List<Node> checkedNodes = new ArrayList<Node>();
final List<Node> allNodes = new ArrayList<Node>();
        treePanel.getRootNode().cascade(new NodeTraversalCallback() {
            public boolean execute(Node node) {
                if (Boolean.valueOf(node.getAttribute("checked"))) {
                    checkedNodes.add(node);
                }
                allNodes.add(node);
                return true;
            }
        });

bye Patrizio


2009/7/6 Andrea <[email protected]>

>
> Hi there
>
> I m using a TreePanel that can be checked; and was wondering what is
> the best way to get info back from the tree: ie all nodes whether they
> are checked or not , and I would like to know if they are.
>
> I know i can use treePanel.getChecked()  but that only gets me the
> checked ones
> or I can use  root.getChildNodes() but here I m not terribly sure how
> to know if its checked or not, it also seems quite cumbersome to
> navigate the tree structure this way
>
> any other alternatives? or recomended way to deal with trees in
> general?
>
>
> Thanks
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to