change parent of a node in a CellTree

73 views
Skip to first unread message

Rodrigue

unread,
Nov 1, 2010, 12:46:11 PM11/1/10
to Google Web Toolkit
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

John LaBanca

unread,
Nov 1, 2010, 1:58:29 PM11/1/10
to google-we...@googlegroups.com
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
jlab...@google.com



--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Rodrigue Lagoue Njinthe

unread,
Nov 1, 2010, 2:06:26 PM11/1/10
to google-we...@googlegroups.com

Hi John,

 

I already call refresh after any data changes.

 

Rodrigue

Rodrigue Lagoue Njinthe

unread,
Nov 1, 2010, 2:23:58 PM11/1/10
to google-we...@googlegroups.com

Hi John!

 

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

 

Rodrigue

 

From: google-we...@googlegroups.com [mailto:google-we...@googlegroups.com] On Behalf Of John LaBanca
Sent: Monday, November 01, 2010 6:58 PM
To: google-we...@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?

Reply all
Reply to author
Forward
0 new messages