]> source.dussan.org Git - vaadin-framework.git/commit
Parameterize Property and Field with the value type.
authorHenri Sara <hesara@vaadin.com>
Tue, 8 Nov 2011 16:02:55 +0000 (18:02 +0200)
committerHenri Sara <hesara@vaadin.com>
Tue, 8 Nov 2011 16:02:55 +0000 (18:02 +0200)
commit0ab1d01c8da1f280370452fa2427708fd6de513e
tree4bf67b8a478da3b25af35c33c031c837ef2cc2e7
parenta61302616430cbbfc97cbdbb85fe294842b3409c
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)
29 files changed:
src/com/vaadin/data/Property.java
src/com/vaadin/data/util/AbstractBeanContainer.java
src/com/vaadin/data/util/AbstractProperty.java
src/com/vaadin/data/util/MethodProperty.java
src/com/vaadin/data/util/NestedMethodProperty.java
src/com/vaadin/data/util/ObjectProperty.java
src/com/vaadin/data/util/PropertyFormatter.java
src/com/vaadin/data/util/TextFileProperty.java
src/com/vaadin/ui/AbstractField.java
src/com/vaadin/ui/AbstractSelect.java
src/com/vaadin/ui/AbstractTextField.java
src/com/vaadin/ui/Button.java
src/com/vaadin/ui/DateField.java
src/com/vaadin/ui/Field.java
src/com/vaadin/ui/Form.java
src/com/vaadin/ui/Label.java
src/com/vaadin/ui/ProgressIndicator.java
src/com/vaadin/ui/RichTextArea.java
src/com/vaadin/ui/Slider.java
tests/server-side/com/vaadin/data/util/ObjectPropertyTest.java
tests/server-side/com/vaadin/data/util/filter/AbstractFilterTest.java
tests/server-side/com/vaadin/tests/server/validation/TestReadOnlyValidation.java
tests/testbench/com/vaadin/tests/components/popupview/PopupViewWithRTE.java
tests/testbench/com/vaadin/tests/components/table/FooterClick.java
tests/testbench/com/vaadin/tests/components/table/HeaderClick.java
tests/testbench/com/vaadin/tests/components/table/HugeRowCount.java
tests/testbench/com/vaadin/tests/tickets/Ticket2119.java
tests/testbench/com/vaadin/tests/tickets/Ticket2151.java
tests/testbench/com/vaadin/tests/tickets/Ticket2998.java