On Friday, March 18, 2011 12:00:40 PM UTC+1, Jens wrote:
>
> I think you will get the deepest child (actually the real DOM target of the 
> click event) via
>
> public void onClick(final ClickEvent event) {
>
>   Element e = DOM.eventGetTarget(Event.as(event.getNativeEvent()));
>
>   System.out.println(e);
>
> }
>
>
>
>
I'd rather use Element.as(event.getNativeEvent().getEventTarget())
or even replace the Element.as() with a check on Element.is() (just in case)

I always try to avoid the old DOM class, that predated the 
com.google.gwt.dom package.

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