diff options
author | Artur Signell <artur.signell@itmill.com> | 2010-07-01 10:39:19 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2010-07-01 10:39:19 +0000 |
commit | dc2b91b335126c8042bf520742cb9bdd4c85ae88 (patch) | |
tree | 39ffbe5d89a86b054e98730b9b14851c6bfbe5aa /src | |
parent | c2977e49c06000315dbcf5d0328ebfe8eff4f999 (diff) | |
download | vaadin-framework-dc2b91b335126c8042bf520742cb9bdd4c85ae88.tar.gz vaadin-framework-dc2b91b335126c8042bf520742cb9bdd4c85ae88.zip |
Potential fix for #4484 - PropertyFormatter constructor calls format
svn changeset:13996/svn branch:6.4
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/data/util/PropertyFormatter.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/com/vaadin/data/util/PropertyFormatter.java b/src/com/vaadin/data/util/PropertyFormatter.java index 3d7b3355f6..df2a2e47f3 100644 --- a/src/com/vaadin/data/util/PropertyFormatter.java +++ b/src/com/vaadin/data/util/PropertyFormatter.java @@ -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. |