GWT has a class called Tree. It also has TreeMenuItems.
Use REGEX  and iterate over nodes and make it a Tree object.
It will give a Tree structure in UI.

If you just want to convert your string to Tree structure, its plain
java. Nothing to do with GWT.

On Mar 1, 1:02 am, Deepan <[email protected]> wrote:
> Hi All,
>
> I am relatively new to GWT.
> I have input as a string and i want to convert it into object structure. I
> was wondering how it can be done in GWT.
>
> Example String -  *(node1(node2(node3) (node4)) (node5))*
>
> "node1" has 2 children "node2" and "node5"
> "node2" has 2 children "node3" and "node4"
>
> More like converting a string into binary tree object.
>
> Thanks,
> Nikhil

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