aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/DateField.java
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2010-03-24 10:05:38 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2010-03-24 10:05:38 +0000
commit4e1d1321ec50c130aafca8d1251a71f12f5e28d1 (patch)
tree1e90d6c509563ecdd84a9946d45dd81649075e31 /src/com/vaadin/ui/DateField.java
parent1b55615e5157517eed59265776bad0dcbbdc53d3 (diff)
downloadvaadin-framework-4e1d1321ec50c130aafca8d1251a71f12f5e28d1.tar.gz
vaadin-framework-4e1d1321ec50c130aafca8d1251a71f12f5e28d1.zip
fixes #3913
svn changeset:12055/svn branch:6.3
Diffstat (limited to 'src/com/vaadin/ui/DateField.java')
-rw-r--r--src/com/vaadin/ui/DateField.java16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/com/vaadin/ui/DateField.java b/src/com/vaadin/ui/DateField.java
index fca0cc472c..45fd45716d 100644
--- a/src/com/vaadin/ui/DateField.java
+++ b/src/com/vaadin/ui/DateField.java
@@ -21,7 +21,6 @@ import com.vaadin.terminal.PaintException;
import com.vaadin.terminal.PaintTarget;
import com.vaadin.terminal.gwt.client.ui.VDateField;
import com.vaadin.terminal.gwt.client.ui.VPopupCalendar;
-import com.vaadin.terminal.gwt.client.ui.VTextualDate;
/**
* <p>
@@ -93,9 +92,6 @@ public class DateField extends AbstractField implements
*/
protected static final String TYPE_INLINE = "inline";
- private static final String BLUR_EVENT = VTextualDate.BLUR_EVENT_IDENTIFIER;
- private static final String FOCUS_EVENT = VTextualDate.FOCUS_EVENT_IDENTIFIER;
-
/**
* Specified widget type.
*/
@@ -370,11 +366,11 @@ public class DateField extends AbstractField implements
}
}
- if (variables.containsKey(FOCUS_EVENT)) {
+ if (variables.containsKey(FocusEvent.EVENT_ID)) {
fireEvent(new FocusEvent(this));
}
- if (variables.containsKey(BLUR_EVENT)) {
+ if (variables.containsKey(BlurEvent.EVENT_ID)) {
fireEvent(new BlurEvent(this));
}
}
@@ -576,21 +572,21 @@ public class DateField extends AbstractField implements
}
public void addListener(FocusListener listener) {
- addListener(FOCUS_EVENT, FocusEvent.class, listener,
+ addListener(FocusEvent.EVENT_ID, FocusEvent.class, listener,
FocusListener.focusMethod);
}
public void removeListener(FocusListener listener) {
- removeListener(FOCUS_EVENT, FocusEvent.class, listener);
+ removeListener(FocusEvent.EVENT_ID, FocusEvent.class, listener);
}
public void addListener(BlurListener listener) {
- addListener(BLUR_EVENT, BlurEvent.class, listener,
+ addListener(BlurEvent.EVENT_ID, BlurEvent.class, listener,
BlurListener.blurMethod);
}
public void removeListener(BlurListener listener) {
- removeListener(BLUR_EVENT, BlurEvent.class, listener);
+ removeListener(BlurEvent.EVENT_ID, BlurEvent.class, listener);
}
/**