On Apr 26, 9:26 am, Johan Rydberg <[email protected]> wrote:
> There's still no way to add custom events?   I'm looking at doing html5
> drag-and-drop, but it is impossible when you can not hook up your event
> handlers.

There's no *supported* way of doing it, but it definitely is possible:
http://code.google.com/p/gwt-in-the-air/source/browse/trunk/src/net/ltgt/gwt/air/user/client/ui/impl/DraggablePanelImplAIR.java#78
http://code.google.com/p/gwt-in-the-air/source/browse/trunk/src/net/ltgt/gwt/air/user/client/ui/impl/DropPanelImplAIR.java#73

Note however that Widget#onBrowserEvent will currently fail because of
the call to DOM.eventGetType:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/client/ui/Widget.java#86
so you'll have to either:
 * wait for GWT 2.1 which somehow fixes the issue (r7737)
 * override onBrowserEvent and make sure you don't call
super.onBrowserEvent with your "new" events

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to