]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed a bug - now sets property panel correctly
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Fri, 2 Feb 2007 20:01:59 +0000 (20:01 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Fri, 2 Feb 2007 20:01:59 +0000 (20:01 +0000)
svn changeset:431/svn branch:toolkit

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

index f1c0f74ff6353e51e2355ce69cae5292236b190d..bfe9b3ab04927d093ad2cf9a1a3b8b64dc87393b 100644 (file)
@@ -72,8 +72,8 @@ public class FeatureDateField extends Feature {
                 */
 
                // Properties
-               PropertyPanel p = new PropertyPanel(df);
-               Form ap = p.createBeanPropertySet(new String[] { "resolution" });
+               propertyPanel = new PropertyPanel(df);
+               Form ap = propertyPanel.createBeanPropertySet(new String[] { "resolution" });
                ap.replaceWithSelect("resolution", new Object[] {
                                new Integer(DateField.RESOLUTION_YEAR),
                                new Integer(DateField.RESOLUTION_MONTH),
@@ -86,13 +86,13 @@ public class FeatureDateField extends Feature {
                                "Millisecond" });
                ap.getField("resolution").setValue(
                                new Integer(DateField.RESOLUTION_DAY));
-               Select themes = (Select) p.getField("style");
+               Select themes = (Select) propertyPanel.getField("style");
                themes.addItem("text").getItemProperty(
                                themes.getItemCaptionPropertyId()).setValue("text");
                themes.addItem("calendar").getItemProperty(
                                themes.getItemCaptionPropertyId()).setValue("calendar");
                df.setStyle("calendar");
-               p.addProperties("DateField Properties", ap);
+               propertyPanel.addProperties("DateField Properties", ap);
 
                return l;
        }