Is there a way to generate JsInterop compatible classes/interfaces for all 
HTML5 javascript features ?
I'm interested in the new File API's, XMLHttpRequest, EventHandlers, ... 
etc. I can type it by hand, but 
somebody must have done the work already or there must be a tool available 
to generate it ?

What I am missing right now is: how can I map Java enums to integers in an 
JsInterop interface ?
For example the HTML Event type contains this:

  const unsigned short *NONE* <https://dom.spec.whatwg.org/#dom-event-none> 
= 0;
  const unsigned short *CAPTURING_PHASE* 
<https://dom.spec.whatwg.org/#dom-event-capturing_phase> = 1;
  const unsigned short *AT_TARGET* 
<https://dom.spec.whatwg.org/#dom-event-at_target> = 2;
  const unsigned short *BUBBLING_PHASE* 
<https://dom.spec.whatwg.org/#dom-event-bubbling_phase> = 3;
  readonly attribute unsigned short *eventPhase* 
<https://dom.spec.whatwg.org/#dom-event-eventphase>;

I would like to expose these as java enums ... is that possible ?

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to