diff options
author | Aleksi Hietanen <aleksi@vaadin.com> | 2017-08-29 12:01:47 +0300 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-08-29 12:01:47 +0300 |
commit | 13961956f6f7deebf3bc4e285cec9ab162ef8d90 (patch) | |
tree | 0e12542edc8d3a636561d1117622cf4f963bc8e8 /server/src | |
parent | 204c5571af75c752623dd1278661c551f7e22200 (diff) | |
download | vaadin-framework-13961956f6f7deebf3bc4e285cec9ab162ef8d90.tar.gz vaadin-framework-13961956f6f7deebf3bc4e285cec9ab162ef8d90.zip |
Minor javadoc improvements (#9885)
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/main/java/com/vaadin/data/Binder.java | 20 | ||||
-rw-r--r-- | server/src/main/java/com/vaadin/ui/Grid.java | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/server/src/main/java/com/vaadin/data/Binder.java b/server/src/main/java/com/vaadin/data/Binder.java index 43f893e33f..7632f2b09b 100644 --- a/server/src/main/java/com/vaadin/data/Binder.java +++ b/server/src/main/java/com/vaadin/data/Binder.java @@ -487,14 +487,13 @@ public class Binder<BEAN> implements Serializable { /** * Sets the field to be required. This means two things: * <ol> - * <li>the required indicator is visible</li> - * <li>the field value is validated for not being empty*</li> + * <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> * </ol> * For localizing the error message, use * {@link #asRequired(ErrorMessageProvider)}. - * <p> - * *Value not being the equal to what {@link HasValue#getEmptyValue()} - * returns. * * @see #asRequired(ErrorMessageProvider) * @see HasValue#setRequiredIndicatorVisible(boolean) @@ -511,11 +510,11 @@ public class Binder<BEAN> implements Serializable { /** * Sets the field to be required. This means two things: * <ol> - * <li>the required indicator is visible</li> - * <li>the field value is validated for not being empty*</li> + * <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> * </ol> - * *Value not being the equal to what {@link HasValue#getEmptyValue()} - * returns. * * @see HasValue#setRequiredIndicatorVisible(boolean) * @see HasValue#isEmpty() @@ -1609,6 +1608,9 @@ public class Binder<BEAN> implements Serializable { * level validators if a bean is currently set with * {@link #setBean(Object)}, and returns whether any of the validators * failed. + * <p> + * <b>Note:</b> Calling this method will not trigger status change events, + * unlike {@link #validate()}. * * @return whether this binder is in a valid state * @throws IllegalStateException diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java index 663df20b88..ceeec79ac1 100644 --- a/server/src/main/java/com/vaadin/ui/Grid.java +++ b/server/src/main/java/com/vaadin/ui/Grid.java @@ -4370,8 +4370,6 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents, * @param providers * list of {@link DeclarativeValueProvider}s to store the data of * each column to - * - * @since 8.1 */ protected void readData(Element body, List<DeclarativeValueProvider<T>> providers) { |