I can't find out how to replace the deprecated event.getTarget().
I have the following code:

@Override
        public void onBrowserEvent(Event event) {
                Element target = event.getTarget();
                if (DOM.eventGetType(event) == Event.ONCLICK) {
                        for (Widget widget : widgets) {
                                if (widget.getElement() == target) {
                                    ....

Now event.getTarget says: Deprecated. use NativeEvent.getEventTarget()
instead.

Can anyone tell me how test on which widget was clicked, using
NativeEvent.getEventTarget() ??

And another question: why should I use onBrowserEvent for a Composite?
Is it not better/easier to implement HasClickHandlers? Which one
should be used when?

Thanks!


-- 
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