summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/data/util/AbstractProperty.java
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2011-11-08 18:02:55 +0200
committerHenri Sara <hesara@vaadin.com>2011-11-08 18:02:55 +0200
commit0ab1d01c8da1f280370452fa2427708fd6de513e (patch)
tree4bf67b8a478da3b25af35c33c031c837ef2cc2e7 /src/com/vaadin/data/util/AbstractProperty.java
parenta61302616430cbbfc97cbdbb85fe294842b3409c (diff)
downloadvaadin-framework-0ab1d01c8da1f280370452fa2427708fd6de513e.tar.gz
vaadin-framework-0ab1d01c8da1f280370452fa2427708fd6de513e.zip
Parameterize Property and Field with the value type.
The interfaces Property and Field and most of their implementations are now parameterized with the type of their value. The method getValue() returns the Property type but setValue() takes Object as its parameter. No implicit conversions between value type and strings are performed in most locations (fields). Among others, AbstractTextField, DateField and RichTextArea not have specific value types and do not accept arbitrary values. Most locations requiring migration will be visible as compilation errors, with the exception of some cases where a non-parameterized Property or Field (or one parametrized with Object) is used. Not yet done: - Label - converters - setValue() parameterization (causes much more migration effort)
Diffstat (limited to 'src/com/vaadin/data/util/AbstractProperty.java')
-rw-r--r--src/com/vaadin/data/util/AbstractProperty.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/vaadin/data/util/AbstractProperty.java b/src/com/vaadin/data/util/AbstractProperty.java
index 2297f13734..bc421755a9 100644
--- a/src/com/vaadin/data/util/AbstractProperty.java
+++ b/src/com/vaadin/data/util/AbstractProperty.java
@@ -17,7 +17,7 @@ import com.vaadin.data.Property;
*
* @since 6.6
*/
-public abstract class AbstractProperty implements Property,
+public abstract class AbstractProperty<T> implements Property<T>,
Property.ValueChangeNotifier, Property.ReadOnlyStatusChangeNotifier {
/**
@@ -56,8 +56,7 @@ public abstract class AbstractProperty implements Property,
/**
* Returns the value of the <code>Property</code> in human readable textual
- * format. The return value should be assignable to the
- * <code>setValue</code> method if the Property is not in read-only mode.
+ * format.
*
* @return String representation of the value stored in the Property
* @deprecated use the property value directly, or {@link #getStringValue()}