jsInterop cast to JavaScriptObject

92 views
Skip to first unread message

Marcio Alves

unread,
Sep 17, 2016, 5:52:27 AM9/17/16
to GWT Users
Hi, 

   Is it possible to casto a jsInterop object to a JavaScriptObject? 

   I am trying to use GWT-Polymer's IronList, but it requires a JsArray<JavaScriptObject>.

   I managed to create my JsArray from a JSNI code, but I don't know how to create it in Java, since the class do not extends from JavaScriptObject.

Thanks,
Marcio Alves


Pablo Nussembaum

unread,
Sep 19, 2016, 12:12:06 PM9/19/16
to google-we...@googlegroups.com
Hi Marcio,
You can check: https://github.com/GWTReact/gwt-interop-utils that several helper to convert java to js and back.
Regards,
--
Bauna
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Marcio Alves

unread,
Sep 19, 2016, 1:12:14 PM9/19/16
to GWT Users
Thanks!


Em segunda-feira, 19 de setembro de 2016 13:12:06 UTC-3, Bauna escreveu:
Hi Marcio,
You can check: https://github.com/GWTReact/gwt-interop-utils that several helper to convert java to js and back.
Regards,
--
Bauna

On 16/09/16 15:47, Marcio Alves wrote:
Hi, 

   Is it possible to casto a jsInterop object to a JavaScriptObject? 

   I am trying to use GWT-Polymer's IronList, but it requires a JsArray<JavaScriptObject>.

   I managed to create my JsArray from a JSNI code, but I don't know how to create it in Java, since the class do not extends from JavaScriptObject.

Thanks,
Marcio Alves


--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages