aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksi Hietanen <aleksi@vaadin.com>2017-08-29 13:39:08 +0300
committerHenri Sara <henri.sara@gmail.com>2017-08-29 17:36:54 +0300
commit90130873a11b6a2dccfe8b60a42ac35285f51ef8 (patch)
treed88ba2e70693c4b4e46ee386b535f319dc0c513e
parent40ffb3948706c4c3aba9947dcb3c0974038a90d9 (diff)
downloadvaadin-framework-90130873a11b6a2dccfe8b60a42ac35285f51ef8.tar.gz
vaadin-framework-90130873a11b6a2dccfe8b60a42ac35285f51ef8.zip
Binder javadoc fix (#9886)
-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)