The gwt depreciated the use of listeners in their widgets in favor of interfaces handlers. One possible difficulty is knowing which handler is associated with the lost focus event. The interface to be used is the BlurHandler. Ex:
final TextBox box = new TextBox ();
box.addBlurHandler (new BlurHandler () (
@ Override
public void onBlur (BlurEvent event) (
box.setText ( "The event was triggered");
)));
No comments:
Post a Comment