Tatu Lund
debfc3b038
Cherry picks of Binder fixes in Flow (#11758)
* Cherry picks of Binder fixes in Flow
Addresses: https://github.com/vaadin/framework/issues/9000
Addresses: https://github.com/vaadin/framework/issues/11109
These changes are adopted from https://github.com/vaadin/flow/pull/4138 and https://github.com/vaadin/flow/pull/6757
4 år sedan
Sun Zhe
0e1738ee89
Add javadoc for validate() call in Binder (#11318)
* Add javadoc for validate() call in Binder
5 år sedan
Mehdi Javan
023ec7f48c
Fixing NPE in Binder, ported from Flow (#11290)
5 år sedan
Mehdi Javan
2e3f4708a8
Improving javadoc of Binder.removeBinding (#11107)
Fixes #11091
5 år sedan
Ilia Motornyi
0528aaafa3
Fix small formatting issues (#10960)
6 år sedan
Ilia Motornyi
1b9feecc74
Fix Binder javadocs (#10907)
Fixes #10399
6 år sedan
Ilia Motornyi
d543e47bec
Enable Maven plugin for Eclipse formatting (#10829)
6 år sedan
Teemu Suo-Anttila
78daf54cbf
Update release notes and since tags for 8.4 (#10760)
6 år sedan
Ilia Motornyi
6541b7bad2
Update copyright year (#10761)
6 år sedan
Márcio P. Dantas
3c52491a5b
Added method asRequired with a custom required validator to BindingBuilder. (#10724)
6 år sedan
Teemu Suo-Anttila
00c3f2c37c
Fix ValueChangeListener order changes with Binder (#10745)
Fixes #9917
6 år sedan
Teemu Suo-Anttila
5aa6433972
Add missing null check to Binding (#10726)
* Add missing null check to Binding
6 år sedan
Teemu Suo-Anttila
4cacbf7d7f
Add setReadOnly for Bindings (#10482)
6 år sedan
Marco Collovati
1619d1f0bb
Treat fields as readonly when bound with null setter (#10477)
Fixes #10476
6 år sedan
Marco Collovati
b35d2ae872
Make Binder.setReadonly ignore effectively readonly bindings (#10368)
Binder.setReadonly will ignore bindings with null setter
or property without an accessible setter when changing
field read only flag.
Fixes #10252
6 år sedan
Teemu Suo-Anttila
c6f5c583ad
Improve Binder JavaDocs and APIs (#10347)
This patch also adds ValueChangeEvent as a parameter to field value change method in Binder.
6 år sedan
Aleksi Hietanen
0fbeb0a626
Extract AbstractBeanPropertyDefinition and PropertyFilterDefinition (#10344)
This commit extracts the private nested class AbstractBeanPropertyDefinition from BeanPropertySet to a public class of package com.vaadin.data.
Additionally, the nested protected class PropertyFilterDefinition is extracted from NestedBeanPropertyDefinition to a public class in package com.vaadin.data.
6 år sedan
Teemu Suo-Anttila
ed57efc07e
Update since tags in JavaDoc (#10325)
6 år sedan
Olli Tietäväinen
99d8b1d16f
Improve nested property support for Binder (#9925)
Fixes #9210
6 år sedan
Teemu Suo-Anttila
a8b09b222a
Add API to read Binding value from bean (#10316)
6 år sedan
Ahmed Ashour
7c8f440781
Remove trailing spaces (#10224)
6 år sedan
Stephan Knitelius
afb9d3b6c1
Added utility method Binder#asRequired() (#9873)
* Added the possiblity of defining a Field as Required without
setting an error message.
* Added @since to asRequired()
* Add droped paragraphs and see tag for asRequired(String)
6 år sedan
Ahmed Ashour
a9c83ba07e
Use .toLowerCase and .toUpperCase(Locale.ROOT) (#10182)
* Use .toLowerCase and .toUpperCase(Locale.ROOT)
* Spaces
* add spaces after if(
6 år sedan
Teemu Suo-Anttila
d0b5741b81
Add ErrorLevel to Validators and results (#10099)
Fixes #9792
6 år sedan
Teemu Suo-Anttila
dd806e8bb3
Fix Binder bean writing to only validate and write given bindings (#10162)
6 år sedan
Ahmed Ashour
eda970f667
Don't use synthetic methods for listener classes. (#10135)
Fixes #9504
6 år sedan
Ahmed Ashour
83f5e593f6
Fix typos (#10124)
6 år sedan
Ahmed Ashour
763a5cbe8c
First sentence of javadoc should end with a period (#10114)
Also includes minor other javadoc and formatting fixes.
6 år sedan
Henri Sara
198ec82c51
Add since tags and update release notes (#10109)
6 år sedan
Ahmed Ashour
7065740d6d
Use interface instead of implementation (#10073)
6 år sedan
Teemu Suo-Anttila
e0b661fae5
Fix BindingBuilder to always use the same instance (#10004)
This allows using BindingBuilder either in a type safe chained manner or with separate calls for the same instance at the cost of less strict type checking.
Fixes #9927
Fixes #9619
6 år sedan
Teemu Suo-Anttila
f5d8dd7bf4
Improve Binder value change handling with bean validation (#9988)
Changed values are now only applied to the bean when they pass both field and bean validation. Any change that breaks validation will be pending and is attempted to apply when another change event comes.
This patch also makes the order of status change event handler and listener call order.
This addresses some of the issues raised in #9955 .
6 år sedan
Teemu Suo-Anttila
1f59cb51af
Add API for running BindingValidationStatusHandlers (#9966)
This patch adds an API to Binding for accessing the validation status handlers from a custom BinderValidationStatusHandler.
6 år sedan
Piotr Wilkin
797cc0104e
Fix removeBinding logic (#10002)
Fixes and improves on PR #9932 .
6 år sedan
Teemu Suo-Anttila
fac79ef885
Add methods to remove Bindings from Binder (#9932)
6 år sedan
Henri Sara
bac31cfb7c
Update Binder isValid() javadoc (#9930)
6 år sedan
Teemu Suo-Anttila
ee4625d097
Fix Binder bindInstanceFields code example in JavaDoc (#9929)
Closes #8994
6 år sedan
Aleksi Hietanen
2bea0c4b10
Binder javadoc fix (#9886)
6 år sedan
Aleksi Hietanen
13961956f6
Minor javadoc improvements (#9885)
6 år sedan
Leif Åstrand
921cd76504
Unify basic instance creation and related error reporting (#9704)
6 år sedan
Teemu Suo-Anttila
dde0f91af4
Add internal state validators for HasValue (#9532)
This also fixes/improves AbstractDateField validation.
6 år sedan
Ilia Motornyi
9c3868e897
Add an optional HasValue to a ValueContext
6 år sedan
Artur
2c5dd49f00
Only throw from Binder.bindInstanceFields if there are no bindings at all (#9487)
Fixes #8986
7 år sedan
Teemu Suo-Anttila
870ac3dd37
Throw exception if user modifies same binding step twice
Fixes #9427
7 år sedan
Aleksi Hietanen
3f4c1e734d
Add missing since tag to Binder#getFields (#9395)
7 år sedan
Artur
91e34500d7
Clear errors when clearing binder fields (#9364)
Calling readBean(null) should reset the form state to the initial state
it was in before calling writeBean(bean)
7 år sedan
Artur
dfe4e3bf6f
Add a method for getting bound fields from Binder (#9365)
7 år sedan
Artur
eef6e0bb50
Make bindInstanceFields not bind fields already bound using functions (#8998)
Fixes #8858
7 år sedan
Matti Tahvonen
da7b805f10
Improved Binder#hasChanges JavaDoc (#8912)
JavaDoc now more explicitly states that hasChanges is not designed to work with setBean.
7 år sedan
Artur
a720d998f5
Use an informative exception message when Binder is incorrectly constructed (#8631)
7 år sedan