Thanks that is what I was looking for.
On Jul 12, 1:28 pm, Dalla <[email protected]> wrote:
> I guess you would use the event.getSource() instead:
>
> final Button myButton = new Button();
> myButton.addClickHandler(new ClickHandler() {
> @Override
> public void onClick(ClickEvent event) {
> if (event.getSource().equals(myButton)) {
> //Do something creative here
> }
> }
>
> });
>
> --Dallahttp://date-time.appspot.com/
>
> On 12 Juli, 14:31, stymie <[email protected]> wrote:
>
> > I am used to 1.5 way of handling events.I am trying to figure out what
> > button sent the event.
>
> > In 1.5 it was something along the lines of widget/sender
>
> > if (sender.equals(button1)
> > window.alert("Button 1 sent this event)
>
> > How can I tell what button sent the event.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---