diff options
author | Artur Signell <artur@vaadin.com> | 2013-03-15 10:07:08 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-03-18 12:31:26 +0000 |
commit | 87f3fd9cec9d0e8641261b13728c1a20206242fc (patch) | |
tree | b2efd4824af4caed693b1f782c31b13a2a87e971 /server/src/com/vaadin/data | |
parent | 331b3c446e73fafea1e1699fe3dfc44dc8023ae5 (diff) | |
download | vaadin-framework-87f3fd9cec9d0e8641261b13728c1a20206242fc.tar.gz vaadin-framework-87f3fd9cec9d0e8641261b13728c1a20206242fc.zip |
Create a PopupDateField by default for Dates (#11159)
Change-Id: I505f8afbc12295f07f2fdbffc459e803629790d7
Diffstat (limited to 'server/src/com/vaadin/data')
-rw-r--r-- | server/src/com/vaadin/data/fieldgroup/DefaultFieldGroupFieldFactory.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/com/vaadin/data/fieldgroup/DefaultFieldGroupFieldFactory.java b/server/src/com/vaadin/data/fieldgroup/DefaultFieldGroupFieldFactory.java index ff6b1d3aee..c1e4b4933e 100644 --- a/server/src/com/vaadin/data/fieldgroup/DefaultFieldGroupFieldFactory.java +++ b/server/src/com/vaadin/data/fieldgroup/DefaultFieldGroupFieldFactory.java @@ -83,7 +83,8 @@ public class DefaultFieldGroupFieldFactory implements FieldGroupFieldFactory { if (InlineDateField.class.isAssignableFrom(fieldType)) { field = new InlineDateField(); - } else if (DateField.class.isAssignableFrom(fieldType)) { + } else if (DateField.class.isAssignableFrom(fieldType) + || fieldType == Field.class) { field = new PopupDateField(); } else if (AbstractTextField.class.isAssignableFrom(fieldType)) { field = createAbstractTextField((Class<? extends AbstractTextField>) fieldType); |