Re: How to tell when a text box loses focus

2010-09-21 Thread Chad
Brett,

You are looking for the BlurHandler / onBlur.

HTH,
Chad

On Sep 21, 3:23 pm, Brett Thomas  wrote:
> Hey, basic question here that I can't find the answer to. Is there any way
> to do something to a TextBox when it loses focus in GWT 2.0?
>
> The FocusListener interface, which has an onLostFocus method, was deprecated
> in favor of FocusHandler, which does not. Can't find anything comparable.
>
> Use case: I want to submit a field to the server without a submit button. I
> don't want to do it after every character change, though, so can't just use
> addValueChangeHandler().
>
> Thanks,
> Brett

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



How to tell when a text box loses focus

2010-09-21 Thread Brett Thomas
Hey, basic question here that I can't find the answer to. Is there any way
to do something to a TextBox when it loses focus in GWT 2.0?

The FocusListener interface, which has an onLostFocus method, was deprecated
in favor of FocusHandler, which does not. Can't find anything comparable.

Use case: I want to submit a field to the server without a submit button. I
don't want to do it after every character change, though, so can't just use
addValueChangeHandler().

Thanks,
Brett

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