updateRowData()/updateRowCount() needs to be called on the data
provider, not on the cell tree.

- You first create a cell tree, passing a tree model to the cell tree
constructor.
- The tree model will be creating node info nodes in
TreeViewModel.getNodeInfo()
- DefaultNodeInfo takes an instance of a data provider for its
constructor
- The data provider initiates an RPC call
- When the data provider receives results back, it updates ITSELF, not
the tree

Take a look at the showcase code for more details
http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTree


On Jan 3, 11:30 pm, yeti <[email protected]> wrote:
> Thank you Y2i, Your messages are greatly help to me
>
> But there is an another problem stuck in... updataRowCount() and
> updataRowData should work with hasData, but cellTree doesnt implement
> it, so my requestion is, as to cellTree,  how do both functions above
> work?
>
> On 2010年12月30日, 下午12时39分, Y2i <[email protected]> wrote:
>
>
>
>
>
>
>
> > It can be populated dynamically.  Please take a look at this post:
>
> >http://groups.google.com/group/google-web-toolkit/msg/6a8f18668f046cc6
>
> > When the data provider receives results back it needs to populate
> > itself by calling
>
> > updateRowCount()
> > updateRowData()
>
> > On Dec 29, 7:12 pm, yeti <[email protected]> wrote:
>
> > > Hi ,
>
> > > I wonder if celltree can be built dynamically... getNodeInfo is
> > > synchronous, so how  to work with a asynchronous, that is , get node
> > > info via a request?
>
> > > Someone said,
>
> > > "pass a ListDataProvider or AsyncDataProvider into DefaultNodeInfo.
> > > Then you can return the NodeInfo synchronously, but populate the data
> > > provider asynchronously. "
>
> > > Is it right when I return defaultNodeinfo , it will wait me to
> > > populate the dataprovider?
>
> > > if not, could anyone show me more details?
>
> > > thanks in advance

-- 
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.

Reply via email to