This should do it:

Object source = event.getSource();
if (source instanceof RadioButton) {
    RadioButton w = (RadioButton) source;
}

On Tue, Dec 7, 2010 at 4:57 AM, Ed <post2edb...@gmail.com> wrote:

> How do I retrieve the orginal Widget object from a bubbled event that
> started the event?
>
> I am using a HTMLPanel that contains RadioButton instances.
> I have one event handler set on the HTMLPanel that receives all the
> click events.
> How can I retrieve the RadioButton widget from the received event ?
>
> As the source of the received event equals the HTMLPanel but I need
> the RadioButton widget.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to