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 = 0;
const unsigned short CAPTURING_PHASE = 1;
const unsigned short AT_TARGET = 2;
const unsigned short BUBBLING_PHASE = 3;
readonly attribute unsigned short eventPhase;
const unsigned short CAPTURING_PHASE = 1;
const unsigned short AT_TARGET = 2;
const unsigned short BUBBLING_PHASE = 3;
readonly attribute unsigned short 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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment