]> source.dussan.org Git - vaadin-framework.git/commitdiff
Changed datefield defaults to calendar with date resolution
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Mon, 29 Jan 2007 15:37:29 +0000 (15:37 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Mon, 29 Jan 2007 15:37:29 +0000 (15:37 +0000)
svn changeset:354/svn branch:toolkit

src/com/itmill/toolkit/demo/features/FeatureDateField.java

index 52b7113829a5f8745547a7b75884a4da8338259a..8f6abf4ad42a7bd37786b5c8a11aeff2dfc64546 100644 (file)
@@ -90,6 +90,7 @@ public class FeatureDateField extends Feature {
                                "Minute",
                                "Second",
                                "Millisecond" });
+               ap.setValue(DateField.RESOLUTION_DAY);
                Select themes = (Select) p.getField("style");
                themes
                        .addItem("text")
@@ -100,6 +101,7 @@ public class FeatureDateField extends Feature {
                        .getItemProperty(themes.getItemCaptionPropertyId())
                        .setValue("calendar");
                p.addProperties("DateField Properties", ap);
+               themes.setValue("calendar");
                l.addComponent(p);
 
                return l;