You'll need to keep a collection (perhaps a HashSet or ArrayList) of all of the checkboxes (or treeNodes) and then iterate through them each time an onchecked event fires and call .setCheck(false), except for the one selected.
>From a user interface perspective, you may want to think about using radio buttons instead of checkboxes since the user is already aware of their behavior (which is what it sounds like you're trying to mimic). But maybe you have more complex rules about things being checked so that wouldn't work. On Mar 10, 11:45 am, joe young <[email protected]> wrote: > I have a Tree(com.gwtext.client.widgets.tree) with some checkable tree > node (where setChecked(true); ) > > I would like to uncheck other checkboxes when one if it is onchecked, > so that only one checked box at one time. > > My question is how can I uncheck a checkbox in public void > onCheckChange(TreeNode node, boolean checked) {} > > Thanks for your help!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
