diff options
author | Artur Signell <artur.signell@itmill.com> | 2009-11-26 15:20:11 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2009-11-26 15:20:11 +0000 |
commit | 26d228c3ba20d09cb38d14e6682fd2d00626cc7b (patch) | |
tree | 2e4d1fac17869accdfa4337cf8fc66e138daa4af /src/com/vaadin/ui/TextField.java | |
parent | 2406a8b6f5ffaf2899646c962ed904923d644b77 (diff) | |
download | vaadin-framework-26d228c3ba20d09cb38d14e6682fd2d00626cc7b.tar.gz vaadin-framework-26d228c3ba20d09cb38d14e6682fd2d00626cc7b.zip |
Patch that fixes #3772 - Add notifier interfaces for focus and blur events
svn changeset:10079/svn branch:6.2
Diffstat (limited to 'src/com/vaadin/ui/TextField.java')
-rw-r--r-- | src/com/vaadin/ui/TextField.java | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/src/com/vaadin/ui/TextField.java b/src/com/vaadin/ui/TextField.java index 59cf6640ce..aa7923ed8b 100644 --- a/src/com/vaadin/ui/TextField.java +++ b/src/com/vaadin/ui/TextField.java @@ -8,6 +8,7 @@ import java.text.Format; import java.util.Map; import com.vaadin.data.Property; +import com.vaadin.event.FieldEvents; import com.vaadin.event.FieldEvents.BlurEvent; import com.vaadin.event.FieldEvents.BlurListener; import com.vaadin.event.FieldEvents.FocusEvent; @@ -38,7 +39,8 @@ import com.vaadin.terminal.gwt.client.ui.VTextField; */ @SuppressWarnings("serial") @ClientWidget(VTextField.class) -public class TextField extends AbstractField { +public class TextField extends AbstractField implements + FieldEvents.BlurNotifier, FieldEvents.FocusNotifier { /* Private members */ @@ -624,40 +626,20 @@ public class TextField extends AbstractField { fireEvent(new BlurEvent(this)); } - /** - * TODO - * - * @param listener - */ public void addListener(FocusListener listener) { addListener(FOCUS_EVENT, FocusEvent.class, listener, FocusListener.focusMethod); } - /** - * TODO - * - * @param listener - */ public void removeListener(FocusListener listener) { removeListener(FOCUS_EVENT, FocusEvent.class, listener); } - /** - * TODO - * - * @param listener - */ public void addListener(BlurListener listener) { addListener(BLUR_EVENT, BlurEvent.class, listener, BlurListener.blurMethod); } - /** - * TODO - * - * @param listener - */ public void removeListener(BlurListener listener) { removeListener(BLUR_EVENT, BlurEvent.class, listener); } |