On Friday, January 11, 2013 12:41:53 PM UTC+1, membersound wrote: > > On selection of a child item in a CellTree, I can get the selected item > by: > MyItem item = selectionModel.getSelectedObject(); > > > How can I tell if MyItem has a parent? Or that it is not a root element? >
- Use a different selection model for the root nodes than for the others - or look for the selected item in the list of root items (getRootTreeNode then getChildCount and getChildValue) ? -- 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/-/E_S0D9ExC98J. 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.
