]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add javadoc for validate() call in Binder (#11318)
authorSun Zhe <31067185+ZheSun88@users.noreply.github.com>
Thu, 15 Nov 2018 11:20:23 +0000 (13:20 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Nov 2018 11:20:23 +0000 (13:20 +0200)
* Add javadoc for validate() call in Binder

server/src/main/java/com/vaadin/data/Binder.java

index d2aff412f684161bca385693d652f2c0f11c1b4d..22ef7d7782cf05f326dae9de1c8e327ec7564f6a 100644 (file)
@@ -139,7 +139,13 @@ public class Binder<BEAN> implements Serializable {
          * Validates the field value and returns a {@code ValidationStatus}
          * instance representing the outcome of the validation.
          *
+         * <strong>Note:</strong> Calling this method will not trigger the value
+         * update in the bean automatically. This method will attempt to
+         * temporarily apply all current changes to the bean and run full bean
+         * validation for it. The changes are reverted after bean validation.
+         *
          * @see #validate()
+         * @see Binder#validate()
          *
          * @param fireEvent
          *            {@code true} to fire status event; {@code false} to not