5152535455565758596061
public void focus(FocusEvent event) { TextFieldFocusAndBlurListeners.this.focus(event); } }); tf2.addListener(new BlurListener() { @Override public void blur(BlurEvent event) { TextFieldFocusAndBlurListeners.this.blur(event); }
4445464748495051525354
public void focus(FocusEvent event) { Notification.show("Focused window"); } }); window.addListener(new BlurListener() { @Override public void blur(BlurEvent event) { Notification.show("Blurred window"); } });
3435363738394041424344
public void valueChange(ValueChangeEvent event) { System.err.println(tf.getCaption() + " valueChange"); } }); tf.addListener(new BlurListener() { @Override public void blur(BlurEvent event) { System.err.println(tf.getCaption() + " blur"); }
4647484950515253545556
public void focus(FocusEvent event) { focusblur.log("Tabsheet focused!"); } }); ts.addBlurListener(new BlurListener() { @Override public void blur(BlurEvent event) { focusblur.log("Tabsheet blurred!"); } });