Yes, check out these methods: DOM.eventCancelBubble() http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/DOM.html#eventCancelBubble(com.google.gwt.user.client.Event,%20boolean)
or Event.cancelBubble() http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble(boolean) Widget.onBrowserEvent() http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/Widget.html#onBrowserEvent(com.google.gwt.user.client.Event) Event.onEventPreview() http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/EventPreview.html#onEventPreview(com.google.gwt.user.client.Event) Unless you're doing low level stuff like drag&drop, I think you should keep using ClickListener and check which Widget was passed as parameter. public void onClick(Widget w) { if (w == innerWidget) { ... } } On Sep 11, 1:43 am, "Gerwood Stewart" <[EMAIL PROTECTED]> wrote: > Does GWT allow control of event Bubbling. A composite widget I'm playing > with at the moment has to click events. One on an inner widget and a > 'default' event for the rest of the widget. I don't want the 'default' event > to trigger if the inner widget is clicked on. > > Does anyone have any experience with this? Is there a way for the inner > widget to cancel the bubbling. I know some of the browsers have this... Does > GWT have a method? > > Thanks > G --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
