Thanks for reply,
Here I am attaching 3 classes.
MyNode.java
This is a bean class that holds the data to display in the tree
MyTreeView.java
Here we build the tree and add the nodes to the tree. First time when I build the treeView with data it invokes buildTree() where I call CellTree() constructor with MyViewModel as parameter, that will invoke getNodeInfo() (overidden method) of MyViewModel class. This is how I could able to see the data in tree view. But when I try to add a new child to the tree, I call the same flow, but it doesnot invoke the getNodeInfo() of the MyViewModel class. Hence I dont see the updated tree.
MyViewModel.java
This class implements TreeViewModel.
Please let me know if am doing any thing incorrect.
Hairsh Alwala
On Monday, September 2, 2013 2:42:45 PM UTC+5:30, Harish Alwala wrote:
On Monday, September 2, 2013 2:42:45 PM UTC+5:30, Harish Alwala wrote:
Hi,I am using GWT 2.4.0In my application I need a tree view which has to refresh regularly by receiving data from server.First time when I feed data model to the cell tree, I get the complete data without any issues, but dynamically if I want to refresh by appending new data to the datamodel, Cell tree doesnot show the new data.Please suggest me how to update CellTree data.Thanks
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment