Re: [gwt-contrib] Re: JsInterop Object Literal

2016-03-20 Thread Brandon Donnelson
Thank you! That's awesome. 

On Sunday, March 20, 2016 at 12:08:10 AM UTC-7, Ray Cromwell wrote:
>
> Right now, the best you can do is 
>
> @JsType(isNative = true, namespace =JsPackage.GLOBAL, name = "Object") 
> class MyLiteral { 
> } 
>
> And put js properties on the object 
>
>
> On Sat, Mar 19, 2016 at 11:11 PM, Brandon Donnelson 
>  wrote: 
> > I found a doc talking about object literal creation 
> > 
> https://docs.google.com/document/d/1DFrC-GtcK7cu6DGxaWCswvb2fai9cnrWPvGcdgsKlBw/edit.
>  
>
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "GWT Contributors" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to google-web-toolkit-contributors+unsubscr...@googlegroups.com 
> . 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/google-web-toolkit-contributors/3c62911e-0304-4181-b6d3-03b4689debb9%40googlegroups.com.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/1fee2041-b886-45a7-8396-1545449b72f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Re: JsInterop Object Literal

2016-03-20 Thread 'Ray Cromwell' via GWT Contributors
Right now, the best you can do is

@JsType(isNative = true, namespace =JsPackage.GLOBAL, name = "Object")
class MyLiteral {
}

And put js properties on the object


On Sat, Mar 19, 2016 at 11:11 PM, Brandon Donnelson
 wrote:
> I found a doc talking about object literal creation
> https://docs.google.com/document/d/1DFrC-GtcK7cu6DGxaWCswvb2fai9cnrWPvGcdgsKlBw/edit.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit-contributors/3c62911e-0304-4181-b6d3-03b4689debb9%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAPVRV7fqdDTY8N_fyzta12aOOJ-WWcgFd0Qduyu03TWDUPQ%2B4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] JsInterop Object Literal

2016-03-20 Thread Brandon Donnelson
Can JsInterop create an object literal? 

var foo = {a:0, b:1};


-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/cfdf6ba5-f414-47b1-9dd7-eb4a9d81e245%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: JsInterop Object Literal

2016-03-20 Thread Brandon Donnelson
I found a doc talking about object literal creation 
https://docs.google.com/document/d/1DFrC-GtcK7cu6DGxaWCswvb2fai9cnrWPvGcdgsKlBw/edit.
 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/3c62911e-0304-4181-b6d3-03b4689debb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: Constructing a new JsType(isNative=true) object

2016-03-20 Thread Brandon Donnelson
isNative means there has to be some existing javascript class the java type 
is wrapping. Is there a javascript class? 

On Monday, March 14, 2016 at 1:37:21 PM UTC-7, Paul Stockley wrote:
>
> Is it legal to call new on a class marked as JsType(isNative=true)? When I 
> try it, I get a runtime error.
>
>
> @JsType(isNative=true, name="HTMLProps", namespace=JsPackage.GLOBAL)
> public class HTMLProps {
> ...
> }
>
> new HTMLProps() results in the following code
>
> new $wnd.HTMLProps which is undefined. This is using superdev mode.
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/14ffd048-db87-45af-ac7c-9bc47d35a0e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.