class JsArray<E extends JavaScriptObject> extends JavaScriptObject {
protected JsArray() { }
public final native int length() /*-{ return this.length; }-*/;
public final native E get(int i) /*-{ return this[i]; }-*/;
}
On Apr 2, 12:57 pm, Pavel Byles <pavelby...@gmail.com> wrote:
> Can someone show me the method signature for the following Java method ?:
>
> public static void myJavaMethod(JsArray<MyJsObject> jso) { ... }
>
> My JsObject's class:
> public class MyJsObject extends JavaScriptObject { ... }
>
> JsArray's class:
>
> class JsArray<E extends JavaScriptObject> extends JavaScriptObject {
> protected JsArray() { }
> public final native int length() /*-{ return this.length; }-*/;
> public final native E get(int i) /*-{ return this[i]; }-*/;
>
> }
>
> When I do this:
> $wnd.myJavaMethod =
>
> @com.xxxx.xxxxx.client.GfcJs::myJavaMethod(Lcom/xxxx/xxxxx/client/JsArra*y*
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
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 google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
On Apr 6, 8:10 am, Pavel Byles <pavelby...@gmail.com> wrote:
> But my call to both java methods will be:
> @com.xxxx.xxxxx.client.GfcJs::myJavaMethod(Lcom/xxxx/xxxxx/client/JsArra*y*
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.