diff options
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. |