ok i figuired out what i was doing wrong.
navTree.getTreeRoot().addItem(); //to add new children to the root.
navTree.getChild(0).addItem(..);// to add to specific children.
instead of just navTree.addItem();
Thanks.
Subhro.
Subhrajyoti Moitra wrote:
> Hello All,
>
> I am using com.google.gwt.gen2.complexpanel.client.FastTree and
> com.google.gwt.gen2.complexpanel.client.FastTreeItem along with a UiBinder
> template for the first time.
>
> I cant seem to see new items that were added to the tree after the view is
> initalized.
>
> @UiField
> FastTree navTree;
> public NavigatorView() {
> FastTree.injectDefaultCss();
> initWidget(binder.createAndBindUi(this));
>
> * //i am adding some items here. These are appearing fine and with
> proper events being handled.**
> navTree.addItem(new FastTreeItem("item 1"));*
> }
>
>
> public void setNavData(TreeData data){
> *navTree.addItem(new FastTreeItem("another new item.. 2"));//i cant see
> this happening. no new nodes appear on the tree.*
> }
>
> How can i "see" new items that are added to the tree? Please help. I have
> been struggling to figure this one out!!
>
> Thanks a lot.
>
> Subhro.
>
> --
> 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.
--
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.