Wouldn't that just be:
public static native JavaScriptObject newDataTable(String json)
/*-{ return new google.visualization.DataTable(eval('(' + json +')')); }-*/
On Wed, Dec 31, 2008 at 16:57, Paul Shannon <[email protected]>wrote:
>
> I can do this in javascript:
>
> var data = new google.visualization.DataTable (jsonString.evalJSON(),
> 0.5);
>
> I'd really like to do the same in Java, with a
> gwt.visualization.client.DataTable object. I have successfully read
> the jsonString, in Java, using RequestBuilder.
>
> Any advice? Do I need to parse the jsonString? If so, how do I do
> *that*?
>
> Thanks!
>
> - Paul Shannon
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---