From 2bea0c4b10fc57b5b642ac2a51ef75e6115da5f2 Mon Sep 17 00:00:00 2001 From: Aleksi Hietanen Date: Tue, 29 Aug 2017 13:39:08 +0300 Subject: Binder javadoc fix (#9886) --- server/src/main/java/com/vaadin/data/Binder.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'server/src') diff --git a/server/src/main/java/com/vaadin/data/Binder.java b/server/src/main/java/com/vaadin/data/Binder.java index 7632f2b09b..96865b13e8 100644 --- a/server/src/main/java/com/vaadin/data/Binder.java +++ b/server/src/main/java/com/vaadin/data/Binder.java @@ -487,11 +487,12 @@ public class Binder implements Serializable { /** * Sets the field to be required. This means two things: *
    - *
  1. the field value is validated for not being empty
  2. - *
  3. the required indicator will be displayed if the value of this - * field at validation time is equal to what - * {@link HasValue#getEmptyValue()} returns
  4. + *
  5. the required indicator will be displayed for this field
  6. + *
  7. the field value is validated for not being empty, i.e. that the + * field's value is not equal to what {@link HasValue#getEmptyValue()} + * returns
  8. *
+ *

* For localizing the error message, use * {@link #asRequired(ErrorMessageProvider)}. * @@ -510,10 +511,10 @@ public class Binder implements Serializable { /** * Sets the field to be required. This means two things: *

    - *
  1. the field value is validated for not being empty
  2. - *
  3. the required indicator will be displayed if the value of this - * field at validation time is equal to what - * {@link HasValue#getEmptyValue()} returns
  4. + *
  5. the required indicator will be displayed for this field
  6. + *
  7. the field value is validated for not being empty, i.e. that the + * field's value is not equal to what {@link HasValue#getEmptyValue()} + * returns
  8. *
* * @see HasValue#setRequiredIndicatorVisible(boolean) -- cgit v1.2.3