]> source.dussan.org Git - vaadin-framework.git/commit
Refactor Binder Status Handling API
authorPekka Hyvönen <pekka@vaadin.com>
Mon, 12 Sep 2016 09:05:19 +0000 (12:05 +0300)
committerVaadin Code Review <review@vaadin.com>
Mon, 12 Sep 2016 13:07:22 +0000 (13:07 +0000)
commit28f5c845793be9a0db3f2acef914a68ccc91ce80
tree42ba7c5cffc7de3a2412ffbd3cc6fa3605ddb606
parent363dce92ae948aa7912007bb024c980de820851f
Refactor Binder Status Handling API

BinderStatusHandler is now triggered only once per validation.
Unified ValidationError and BinderResult into BinderValidationStatus.
Renamed ValidationStatusChangeEvent into ValidationStatus.
Unified handler names for validation status.

Next patch will fix resetting of field errors on reset.

Change-Id: I9536d554d781fe599fbd7e5bcb5a9ffebe675ca0
16 files changed:
documentation/datamodel/datamodel-forms.asciidoc
server/src/main/java/com/vaadin/data/BeanBinder.java
server/src/main/java/com/vaadin/data/Binder.java
server/src/main/java/com/vaadin/data/BinderResult.java [deleted file]
server/src/main/java/com/vaadin/data/BinderStatusHandler.java
server/src/main/java/com/vaadin/data/BinderValidationStatus.java [new file with mode: 0644]
server/src/main/java/com/vaadin/data/BinderValidationStatusHandler.java [new file with mode: 0644]
server/src/main/java/com/vaadin/data/StatusChangeHandler.java [deleted file]
server/src/main/java/com/vaadin/data/ValidationError.java [deleted file]
server/src/main/java/com/vaadin/data/ValidationException.java
server/src/main/java/com/vaadin/data/ValidationStatus.java
server/src/main/java/com/vaadin/data/ValidationStatusChangeEvent.java [deleted file]
server/src/main/java/com/vaadin/data/ValidationStatusHandler.java [new file with mode: 0644]
server/src/test/java/com/vaadin/data/BeanBinderTest.java
server/src/test/java/com/vaadin/data/BinderBookOfVaadinTest.java
server/src/test/java/com/vaadin/data/BinderTest.java