Hi,

In pre-1.6 I could implement ClickListener and then in my code...

Button foo = new Button();
foo.addClickListener(this);
...
etc

I know that in 1.6 I implement ClickHandler and then

...
foo.addClickHandler(this);
...

My question today is about creating the onClick method.  Before I
could do the following:

private void onClick(Widget sender) {
    if (sender == foo) {
        // do the click processing for Button foo
    }
}

In 1.6 the onClick method now has the argument "(ClickEvent event)".
How do I go from the "event" to knowing which widget caused 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 Google-Web-Toolkit@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