Hellu, I am trying to port to the new NativePreviewHandler as the EventPreview is deprecated in 1.6.4. A few questions: 1) How to retrieve the correct target element that fired the event preview.
In the past this was done by: Element target = DOM.eventGetTarget(event) But how should this by done now with the new received NativePreviewEvent ? I see that I can retrieve the target event, but how the element ? I need this to check if my own widget element is a child of the element that fired the event... I noticed that the HandlerManager of the this native events don't have a source (see Event.addNativePreviewHandler() ), so retrieving the source doesn't make sense I suppose 2) Please some general explanation about the usage of the NativePreviewEvent? Especialy about the usage of cancel and consume ? I think that I don't need the consume method in my case and can simple cancel it when using it, or do I still need to call consume? and what should others do with it ?.... Or can I make my own usage and cancel and consume are just handy helper methods ? Please some help, Ed --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
