CellTree consists of a bunch of NodeInfos, each of which has its own DataProvider. In order to use a CellTree, you need to create a TreeViewModel that creates NodeInfos (use DefaultNodeInfo) based on the value of the node that was just opened. For example, if you open the top level node "Friends", TreeViewModel.getNodeInfo() will be passed "Friends". You should return a DefaultNodeInfo that contains a list of friends. DefaultNodeInfo takes a DataProvider in its constructor.
Thanks, John LaBanca [email protected] On Fri, Nov 19, 2010 at 7:09 PM, spiewko <[email protected]> wrote: > I found it impossible to update CellTree view when needed. CellTree > not implements HasData<T> interface so can't be set as display for > DataProvider. > > It looks like CellTree needs different approach than other cell > widgets. I would very helpful if someone could explain what is a > proper use of the DataProvider, CellTree in context of updating tree > view? > > I so some posts with reference to AbstractDataProvider.updateRowData() > but don't understand how it can by used. > > Best regards. > > -- > 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]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- 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.
