summaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorAleksi Hietanen <aleksi@vaadin.com>2017-08-29 13:39:08 +0300
committerGitHub <noreply@github.com>2017-08-29 13:39:08 +0300
commit2bea0c4b10fc57b5b642ac2a51ef75e6115da5f2 (patch)
treea1e15ccdd723507b7977ed65b3dc0d4e23569e51 /server/src
parent08ff3b8fdbc7f9b40000cd266449ec08c6e9e366 (diff)
downloadvaadin-framework-2bea0c4b10fc57b5b642ac2a51ef75e6115da5f2.tar.gz
vaadin-framework-2bea0c4b10fc57b5b642ac2a51ef75e6115da5f2.zip
Binder javadoc fix (#9886)
Diffstat (limited to 'server/src')
-rw-r--r--server/src/main/java/com/vaadin/data/Binder.java17
1 files changed, 9 insertions, 8 deletions
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<BEAN> implements Serializable {
/**
* Sets the field to be required. This means two things:
* <ol>
- * <li>the field value is validated for not being empty</li>
- * <li>the required indicator will be displayed if the value of this
- * field at validation time is equal to what
- * {@link HasValue#getEmptyValue()} returns</li>
+ * <li>the required indicator will be displayed for this field</li>
+ * <li>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</li>
* </ol>
+ * <p>
* For localizing the error message, use
* {@link #asRequired(ErrorMessageProvider)}.
*
@@ -510,10 +511,10 @@ public class Binder<BEAN> implements Serializable {
/**
* Sets the field to be required. This means two things:
* <ol>
- * <li>the field value is validated for not being empty</li>
- * <li>the required indicator will be displayed if the value of this
- * field at validation time is equal to what
- * {@link HasValue#getEmptyValue()} returns</li>
+ * <li>the required indicator will be displayed for this field</li>
+ * <li>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</li>
* </ol>
*
* @see HasValue#setRequiredIndicatorVisible(boolean)