here is a hacky example of how to do something similar to what you
want with an event bus.

This definitely could've been put together better, but it should give
you the general jist.

https://code.google.com/r/larsenje-fixesforwidgeteventhandling/source/checkout


On Nov 5, 1:14 pm, nathan <[email protected]> wrote:
> I tried event.getSource() but since I created a custom widget, called
> CompositeWidget, and I'm listening for a click in the LeftPanel, I
> believe event.getSource() is returning LeftPanel, not the
> CompositeWidget. So the contents of the CompositeWidget are not
> available from event.getSource(). I could be way off on this.
>
> I think it could have something to do with Event Bubbling. Mentioned
> here:http://code.google.com/webtoolkit/doc/1.6/FAQ_UI.html#How_can_I_effic...,
> but I don't know how to implement that.
>
> I should mention that I'm new to GWT, so if I'm just doing something
> completely wrong or inefficient, please let me know.
>
> I put an example of what I'm trying to do 
> here:https://code.google.com/p/gwtcustomwidgeteventhandling/source/browse/
>
> When the "Remove" button is clicked, I want that CompositeWidget to be
> removed from the LeftPanel, and it's contents removed from the
> RightPanel.
>
> I understand I'm probably not explaining myself well, and what I put
> up may not be the best example, but thanks for any help.

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