Thanks, that was right there in the upgrade guide, if I hadn't skimmed
over it.

How about the new way to handle onFocusLost() ?

I'm adding a blurHandler and handling onBlur(BlurEvent event)  but ---
how do I check if this is losing focus?  I'm not seeing the definition
of the real events in the docs...

Thanks.

On Feb 24, 2:40 pm, Isaac Truett <[email protected]> wrote:
> // From memory, without running it past a compiler, I think it is:
> Widget widget = (Widget) event.getSource();
>
> On Tue, Feb 24, 2009 at 2:37 PM, Brian <[email protected]> wrote:
>
> > Migrated my app to 1.6, and am really liking the war structure and the
> > speed increase in booting.  By migrating to the new war structure, I
> > just got rid of my local jetty server.
>
> > Anyway, I'm plowing through 200 warnings or so on deprecated usage,
> > and am just punting on one type.  Basically I'm hoping someone tells
> > me what to do by the time I clear up everything else...
>
> > It's the conversion from ClickHandler to ClickEvent.  How do I convert
> > the click handler on a button from a ClickListener to a ClickHandler,
> > and still compare on the widget?
>
> > convert:
> >    public void onClick(Widget widget) {
> >        if (widget == someWidget) {
> > // do something...
> >        }
> >    }
>
> > to:
> >  public void onClick(ClickEvent event) {
> > // tell me what to write here, please :-)
> > }
--~--~---------~--~----~------------~-------~--~----~
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