Yes, it's the end of the code:

 // defining
  *private SingleSelectionModel<MyType> selectionModel =**
    new SingleSelectionModel<MyType>();*

  // inside TreeViewModel ctor (or in a better place)
 * selectionModel.addSelectionChangeHandler(new 
SelectionChangeEvent.Handler() {**

    public void onSelectionChange(SelectionChangeEvent event) {
      // fire rpc, a place change or something else
**      // event.getSelectedObject() contain**s the selected element
    }
  });*

  // return the DefaultNodeInfo with info about the selection strategy
  public <T> NodeInfo<?> getNodeInfo(T value) {

    // do something with the value and return the right DefaultNodeInfo
    if(value instanceof MyType1) {
      return new DefaultNodeInfo<SectionDTO>(
          new SectionDataProvider(),
          new MyCustomCellOrADefaultOne(),
          *selectionModel*,
          null);
    }
    else if ...
  }


Michaël

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/K5UlSlv5YaoJ.
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.

Reply via email to