Monday, November 1, 2010

RE: change parent of a node in a CellTree

Hi John!

 

here the infos you need for debugging have been send directly to your mailbox.

 

Rodrigue

 

From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of John LaBanca
Sent: Monday, November 01, 2010 6:58 PM
To: google-web-toolkit@googlegroups.com
Subject: Re: change parent of a node in a CellTree

 

There is a bug associated with inserting a value into the tree, but calling refresh() on the ListDataProvider should workaround the issue.  Do you have any more info that might help debug it?

 

And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed.

Not currently.  You have to call refresh() on all the ListDataProviders.


Thanks,
John LaBanca
jlabanca@google.com

On Mon, Nov 1, 2010 at 12:46 PM, Rodrigue <rlagoue@googlemail.com> wrote:

Hi!

did someone already modify successful a celltree's structure
programmatically?  I want to change the parent of a node
programmatically and see the changes displayed on the screen. What I
do now is the following:
•       remove the considered node's value from the old parent's
ListDataProvider using ListDataProvider#getList()#remove ().
•       add the considered node's value to the new parent's ListDataProvider
using ListDataProvider#getList()#add()
•       call ListDataProvider#refresh on both old and new parent
ListDataProviders.

I expected to see the old node move from the old to the new parent.
But what occurs instead, is that the node I wanted to move just
disappear from the tree.
What can be the problem?

And I would also like to know, if there is a way to tell to a CellTree
to redraw itself because the backed data have changed.

Thanks for any help.
Rodrigue

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment