Search code examples
javagwttreecell

GWT Cell Tree, Selecting too many options!


I am using a gwt cell tree and I want only one node to be selected in the whole tree but many nodes are being selected.

I am also trying this

S1= new SelectionModel();......
S1.setSelected(S1.getSelected(),false); but using this technique nothing is being selected.

I am having the following problem:alt text

Can someone help??


Solution

  • Maybe SingleSelectionModel helps you;

    SingleSelectionModel selectionModel = new SingleSelectionModel();
    

    See Google Example 2 to SingleSelectionModel usage.