I still have no clue as to where the underlying functionality is stored.
Thank you for your assistance.
I suspected something like this regarding the commented-out code in the
stubs, though I didn't know that it was called JSNI, so thanks for the
pointer, but I'm still in the dark. No js files reference any of the
specific visualizations like LineChart or AnnotatedTimeLine, and no js files
reference "visualization" at all except for example javascript files. No
jar files with names suggesting even remote association with my search have
directories or files that are relevant.
In particular I took note of this, in the base, abstract Visualization
class:
/**
* Creates an instance of the underlying JavaScriptObject for this
* visualization. Subclasses must override this with JSNI that calls the
* JavaScript constructor for their visualization.
*
* @param div The container for the visualization.
* @return The underlying JavaScriptObject for the visualization.
*/
protected abstract JavaScriptObject createJso(Element div);
And the corresponding implementation in the LineChart class
@Override
protected native JavaScriptObject createJso(Element parent) /*-{
return new $wnd.google.visualization.LineChart(parent);
}-*/;
But I can't find any js file referencing LineChart in the entire directory
tree, including the jar files.
I've also searched the trunk for fla, swf, svg, and vml files to no avail.
On Sun, Jan 25, 2009 at 7:26 PM, Arthur Kalmenson <[email protected]>wrote:
> If it's supported by the GWT visualization API, it's probably done with
> JSNI methods. You should be able to seem them as native methods with a
> comment around it. You can find more information here:
> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideJavaScriptNativeInterface
>
> --
> Arthur Kalmenson
>
>
>
> On Sun, Jan 25, 2009 at 3:18 AM, Ranen <[email protected]> wrote:
>
>>
>> Hi,
>> Where is the code for the visualization widgets? For example, the
>> flash code for AnnotatedTimeLine widget or the svg or vml code for the
>> LineChart widget?
>> I have only been able to find stub code, such as
>> com/google/gwt/visualization/client/visualizations/LineChart.java
>> and I couldn't discern from this where the underlying functionality is.
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---