]> source.dussan.org Git - vaadin-framework.git/commitdiff
By default, use calendar style
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Mon, 29 Jan 2007 15:55:49 +0000 (15:55 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Mon, 29 Jan 2007 15:55:49 +0000 (15:55 +0000)
svn changeset:360/svn branch:toolkit

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

index 5695eba556edc5d16f4c5227ca14129810246796..71302b8148cce7c2a4be71f7f7a90d0c9e8ce579 100644 (file)
@@ -56,7 +56,7 @@ public class FeatureDateField extends Feature {
 
                // Example panel
                Panel show = new Panel("DateField component");
-               DateField df = new DateField("Caption");
+               DateField df = new DateField();
                df.setValue(new java.util.Date());
                show.addComponent(df);
                l.addComponent(show);
@@ -100,6 +100,7 @@ public class FeatureDateField extends Feature {
                        .addItem("calendar")
                        .getItemProperty(themes.getItemCaptionPropertyId())
                        .setValue("calendar");
+               df.setStyle("calendar");
                p.addProperties("DateField Properties", ap);
                l.addComponent(p);