]> source.dussan.org Git - vaadin-framework.git/commitdiff
Potential fix for #4484 - PropertyFormatter constructor calls format
authorArtur Signell <artur.signell@itmill.com>
Thu, 1 Jul 2010 10:39:19 +0000 (10:39 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 1 Jul 2010 10:39:19 +0000 (10:39 +0000)
svn changeset:13996/svn branch:6.4

src/com/vaadin/data/util/PropertyFormatter.java

index 3d7b3355f6067e5a9fdc260a680ae6162fa4954e..df2a2e47f3bc1a7a24a5dc54fe5e203844f17b8c 100644 (file)
@@ -54,7 +54,18 @@ public abstract class PropertyFormatter implements Property,
     Property dataSource;
 
     /**
-     * Construct a new formatter that is connected to given datasource.
+     * Construct a new {@code PropertyFormatter} that is not connected to any
+     * data source. Call {@link #setPropertyDataSource(Property)} later on to
+     * attach it to a property.
+     * 
+     */
+    protected PropertyFormatter() {
+    }
+
+    /**
+     * Construct a new formatter that is connected to given data source. Calls
+     * {@link #format(Object)} which can be a problem if the formatter has not
+     * yet been initialized.
      * 
      * @param propertyDataSource
      *            to connect this property to.