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 17:36:54 +0300 |
commit | 40ffb3948706c4c3aba9947dcb3c0974038a90d9 (patch) | |
tree | c8bb2f6cc4a0ebd7024e080c900070acc306dd90 /server/src/main | |
parent | c336be5fce98521f07a9820b2170bd0e0fd61355 (diff) | |
download | vaadin-framework-40ffb3948706c4c3aba9947dcb3c0974038a90d9.tar.gz vaadin-framework-40ffb3948706c4c3aba9947dcb3c0974038a90d9.zip |
Minor javadoc improvements (#9885)
Diffstat (limited to 'server/src/main')
-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 9a0c5e1aea..e20999f0da 100644 --- a/server/src/main/java/com/vaadin/ui/Grid.java +++ b/server/src/main/java/com/vaadin/ui/Grid.java @@ -4284,8 +4284,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) { |