I'm adding the GData samples here as i go, if you want to see the
library in action.
http://1.latest.gwt-gdata.appspot.com/v/HelloGData.html

Bobby

On Jul 14, 9:54 am, Eric Ayers <[email protected]> wrote:
> Thanks for the update.
>
>
>
> On Mon, Jul 13, 2009 at 11:45 PM, Bobby<[email protected]> wrote:
>
> > Status update: the library is ready, i'm translating the various JS
> > samples into GWT to include in the first download, using the same
> > format as the Google Maps sample app which is contained the in the gwt-
> > maps-1.0.4.zip available here:
> >http://code.google.com/p/gwt-google-apis/wiki/Downloads?tm=2
>
> > This is the fun part. :)
>
> > Bobby
>
> > On Jun 25, 8:20 am, Thomas Broyer <[email protected]> wrote:
> >> On 25 juin, 08:32, Bobby <[email protected]> wrote:
>
> >> > Actually, i've just noticed that the ArrayHelper in the AjaxLoader
> >> > module provides the same functionality. Question though, when calling
> >> > the fromArray() method from within a JSNI method, what's the parameter
> >> > signature that should be used? I'm not having any luck with fromArray
> >> > (Lcom/google/gwt/core/client/JavaScriptObject;).
>
> >> > I want to transform the following:
> >> > public final native void setProperties(JsArray<Property> properties) /
> >> > *-{
> >> >     this.setProperties(
> >> >       properties
> >> >     );
>
> >> > }-*/;
>
> >> > Into the following:
>
> >> > public final native void setProperties(Property[] properties) /*-{
> >> >     this.setProperties(
> >> >       @net.ltgt.gwt.jscollections.client.JsArrays::fromArray(Lcom/
> >> > google/gwt/core/client/JavaScriptObject;)(properties)
> >> >     );
>
> >> > }-*/;
>
> >> I'd personally use an intermediate setProperty(JsArray<Property>) and
> >> call the fromArray in pure Java.
>
> >> > But GWT complains about not being able to find the method with that
> >> > signature.
>
> >>http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D...
> >> links 
> >> tohttp://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/types.html#wp16432
> >> which says to use:
>
> >>    ...::fromArray([Lcom/google:gwt/core/client/JavaScriptObject;)
> >> (properties)
>
> >> (note the left square bracket before the L)
>
> >> > Also, why are the ellipsis used?
>
> >> to allow for uses such as fromArray("a", "b", "c") instead of fromArray
> >> (new String[] { "a", "b", "c" })
>
> >> > Do they have a special purpose in GWT?
>
> >> No (and as with generics, it's hardly more than syntactic sugar, as
> >> the "new String[]" is implied in the example above)
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~---------~--~----~------------~-------~--~----~
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