I'm probably not doing this the right way but, I've been trying to extend MouseEvent to support HTML5 Drag and Drop (drag, dragenter, etc. etc.).
I've created a: Has...Handlers interface bunch of Handler classes (DropHandler, DragEnterHandler, etc) and a bunch of Event classes that extend MouseEvent (DropEvent, DragEnterEvent, etc). I've also created a DropTarget Widget that implements the Has...Handlers interface which accepts a Widget as a param in its contructor which then calls setElement() passing in widget.getElement ()... I then add this DropTarget to the RootPanel (for testing purposes) in an onModuleLoad. But I'm getting a low level error ("Something other than an int was returned from JSNI method"): com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.google.gwt.user.client.impl.DOMImpl::eventGetTypeInt(Ljava/lang/ String;)': JS value of type undefined, expected int at com.google.gwt.dev.shell.JsValueGlue.getIntRange (JsValueGlue.java:266) at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt (ModuleSpace.java:242) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt (JavaScriptHost.java:75) at com.google.gwt.user.client.impl.DOMImpl.eventGetTypeInt (DOMImpl.java) at com.google.gwt.user.client.Event$.getTypeInt(Event.java:491) at com.google.gwt.user.client.ui.Widget.addDomHandler(Widget.java: 184) at com.applegreen.gwt.html5.dnd.client.DropTarget.addDragEnterHandler (DropTarget.java:44) at com.applegreen.gwt.test.client.DragAndDropTest.onModuleLoad (DragAndDropTest.java:46) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 369) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule (OophmSessionHandler.java:185) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection (BrowserChannelServer.java:380) at com.google.gwt.dev.shell.BrowserChannelServer.run (BrowserChannelServer.java:222) at java.lang.Thread.run(Unknown Source) Can anyone shed any light on what I'm doing wrong or what method I should have overidden (I'm not a java programmer btw)?? Cheers, Dave -- 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-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.