aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/data
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main/java/com/vaadin/data')
-rw-r--r--server/src/main/java/com/vaadin/data/Binder.java15
-rw-r--r--server/src/main/java/com/vaadin/data/BinderValidationStatus.java6
-rw-r--r--server/src/main/java/com/vaadin/data/BinderValidationStatusHandler.java2
-rw-r--r--server/src/main/java/com/vaadin/data/BindingValidationStatusHandler.java4
-rw-r--r--server/src/main/java/com/vaadin/data/HasValue.java5
-rw-r--r--server/src/main/java/com/vaadin/data/ValidationException.java2
-rw-r--r--server/src/main/java/com/vaadin/data/converter/AbstractStringToNumberConverter.java4
-rw-r--r--server/src/main/java/com/vaadin/data/converter/StringToBooleanConverter.java6
-rw-r--r--server/src/main/java/com/vaadin/data/converter/StringToDateConverter.java4
-rw-r--r--server/src/main/java/com/vaadin/data/converter/StringToIntegerConverter.java4
-rw-r--r--server/src/main/java/com/vaadin/data/converter/StringToLongConverter.java4
-rw-r--r--server/src/main/java/com/vaadin/data/provider/DataCommunicator.java4
12 files changed, 29 insertions, 31 deletions
diff --git a/server/src/main/java/com/vaadin/data/Binder.java b/server/src/main/java/com/vaadin/data/Binder.java
index 5cde210189..fab163a1c5 100644
--- a/server/src/main/java/com/vaadin/data/Binder.java
+++ b/server/src/main/java/com/vaadin/data/Binder.java
@@ -110,7 +110,7 @@ public class Binder<BEAN> implements Serializable {
* instance representing the outcome of the validation.
*
* @see Binder#validate()
- * @see Validator#apply(Object)
+ * @see Validator#apply(Object, ValueContext)
*
* @return the validation result.
*/
@@ -805,8 +805,7 @@ public class Binder<BEAN> implements Serializable {
/**
* Handles the value change triggered by the bound field.
*
- * @param bean
- * the new value
+ * @param event
*/
private void handleFieldValueChange(
ValueChangeEvent<FIELDVALUE> event) {
@@ -1020,7 +1019,7 @@ public class Binder<BEAN> implements Serializable {
* {@link HasValue#getEmptyValue()}. This conversion is one-way only, if you
* want to have a two-way mapping back to {@code null}, use
* {@link #forField(HasValue)} and
- * {@link Binding#withNullRepresentation(Object))}.
+ * {@link BindingBuilder#withNullRepresentation(Object))}.
* <p>
* When a bean is bound with {@link Binder#setBean(BEAN)}, the field value
* is set to the return value of the given getter. The property value is
@@ -1384,13 +1383,13 @@ public class Binder<BEAN> implements Serializable {
* Only the one validation error message is shown in this label at a time.
* <p>
* This is a convenience method for
- * {@link #setValidationStatusHandler(BinderStatusHandler)}, which means
+ * {@link #setValidationStatusHandler(BinderValidationStatusHandler)}, which means
* that this method cannot be used after the handler has been set. Also the
* handler cannot be set after this label has been set.
*
* @param statusLabel
* the status label to set
- * @see #setValidationStatusHandler(BinderStatusHandler)
+ * @see #setValidationStatusHandler(BinderValidationStatusHandler)
* @see BindingBuilder#withStatusLabel(Label)
*/
public void setStatusLabel(Label statusLabel) {
@@ -1447,11 +1446,11 @@ public class Binder<BEAN> implements Serializable {
* Gets the status handler of this form.
* <p>
* If none has been set with
- * {@link #setValidationStatusHandler(BinderStatusHandler)}, the default
+ * {@link #setValidationStatusHandler(BinderValidationStatusHandler)}, the default
* implementation is returned.
*
* @return the status handler used, never <code>null</code>
- * @see #setValidationStatusHandler(BinderStatusHandler)
+ * @see #setValidationStatusHandler(BinderValidationStatusHandler)
*/
public BinderValidationStatusHandler<BEAN> getValidationStatusHandler() {
return Optional.ofNullable(statusHandler)
diff --git a/server/src/main/java/com/vaadin/data/BinderValidationStatus.java b/server/src/main/java/com/vaadin/data/BinderValidationStatus.java
index f89b743258..663d1635df 100644
--- a/server/src/main/java/com/vaadin/data/BinderValidationStatus.java
+++ b/server/src/main/java/com/vaadin/data/BinderValidationStatus.java
@@ -29,12 +29,12 @@ import com.vaadin.data.validator.BeanValidator;
* Binder validation status change. Represents the outcome of binder level
* validation. Has information about the validation results for the
* {@link BindingBuilder#withValidator(Validator) field level} and
- * {@link Binder#withValidator(Validator)binder level} validation.
+ * {@link Binder#withValidator(Validator) binder level} validation.
* <p>
* Note: if there are any field level validation errors, the bean level
* validation is not run.
* <p>
- * Use {@link Binder#setValidationStatusHandler(BinderStatusHandler)} to handle
+ * Use {@link Binder#setValidationStatusHandler(BinderValidationStatusHandler)} to handle
* form level validation status changes.
*
* @author Vaadin Ltd
@@ -43,7 +43,7 @@ import com.vaadin.data.validator.BeanValidator;
* the bean type of the binder
*
* @see BinderValidationStatusHandler
- * @see Binder#setValidationStatusHandler(BinderStatusHandler)
+ * @see Binder#setValidationStatusHandler(BinderValidationStatusHandler)
* @see Binder#validate()
* @see BindingValidationStatus
*
diff --git a/server/src/main/java/com/vaadin/data/BinderValidationStatusHandler.java b/server/src/main/java/com/vaadin/data/BinderValidationStatusHandler.java
index c2b591cf25..9f144ac430 100644
--- a/server/src/main/java/com/vaadin/data/BinderValidationStatusHandler.java
+++ b/server/src/main/java/com/vaadin/data/BinderValidationStatusHandler.java
@@ -21,7 +21,7 @@ import com.vaadin.ui.AbstractComponent;
/**
* Handler for {@link BinderValidationStatus} changes.
* <p>
- * {{@link Binder#setValidationStatusHandler(BinderStatusHandler) Register} an
+ * {@link Binder#setValidationStatusHandler(BinderValidationStatusHandler) Register} an
* instance of this class to be able to customize validation status handling.
* <p>
* The default handler will show
diff --git a/server/src/main/java/com/vaadin/data/BindingValidationStatusHandler.java b/server/src/main/java/com/vaadin/data/BindingValidationStatusHandler.java
index 74a4c41c66..6e509be0ac 100644
--- a/server/src/main/java/com/vaadin/data/BindingValidationStatusHandler.java
+++ b/server/src/main/java/com/vaadin/data/BindingValidationStatusHandler.java
@@ -22,7 +22,7 @@ import com.vaadin.ui.AbstractComponent;
/**
* Handler for {@link BindingValidationStatus} changes.
* <p>
- * {@link BindingBuilder#withValidationStatusHandler(withValidationStatusHandler)
+ * {@link BindingBuilder#withValidationStatusHandler(BindingValidationStatusHandler)}
* Register} an instance of this class to be able to override the default
* handling, which is to show
* {@link AbstractComponent#setComponentError(com.vaadin.server.ErrorMessage) an
@@ -30,7 +30,7 @@ import com.vaadin.ui.AbstractComponent;
*
* @author Vaadin Ltd
*
- * @see BindingBuilder#withValidationStatusHandler(withValidationStatusHandler)
+ * @see BindingBuilder#withValidationStatusHandler(BindingValidationStatusHandler)
* @see BindingValidationStatus
*
* @since 8.0
diff --git a/server/src/main/java/com/vaadin/data/HasValue.java b/server/src/main/java/com/vaadin/data/HasValue.java
index 22cc1c30bc..b5707605cd 100644
--- a/server/src/main/java/com/vaadin/data/HasValue.java
+++ b/server/src/main/java/com/vaadin/data/HasValue.java
@@ -19,8 +19,7 @@ import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.EventObject;
import java.util.Objects;
-import java.util.function.BiConsumer;
-
+import com.vaadin.server.Setter;
import com.vaadin.event.SerializableEventListener;
import com.vaadin.shared.Registration;
import com.vaadin.ui.Component;
@@ -200,7 +199,7 @@ public interface HasValue<V> extends Serializable {
* values. Specific implementations might not support this.
*
* @return empty value
- * @see Binder#bind(HasValue, ValueProvider, BiConsumer)
+ * @see Binder#bind(HasValue, ValueProvider, Setter)
*/
public default V getEmptyValue() {
return null;
diff --git a/server/src/main/java/com/vaadin/data/ValidationException.java b/server/src/main/java/com/vaadin/data/ValidationException.java
index 3122614b36..6b3b0a121a 100644
--- a/server/src/main/java/com/vaadin/data/ValidationException.java
+++ b/server/src/main/java/com/vaadin/data/ValidationException.java
@@ -82,7 +82,7 @@ public class ValidationException extends Exception {
/**
* Returns a list of the bean level validation errors which caused the
* exception, or an empty list if the exception was caused by
- * {@link #getBindingValidationErrors() binder level validation errors}.
+ * {@link #getFieldValidationErrors() field level validation errors}.
*
* @return binder validation errors list
*/
diff --git a/server/src/main/java/com/vaadin/data/converter/AbstractStringToNumberConverter.java b/server/src/main/java/com/vaadin/data/converter/AbstractStringToNumberConverter.java
index 2aefb43567..1c4d95cfe0 100644
--- a/server/src/main/java/com/vaadin/data/converter/AbstractStringToNumberConverter.java
+++ b/server/src/main/java/com/vaadin/data/converter/AbstractStringToNumberConverter.java
@@ -52,8 +52,8 @@ public abstract class AbstractStringToNumberConverter<T>
}
/**
- * Returns the format used by {@link #convertToPresentation(Object, Locale)}
- * and {@link #convertToModel(Object, Locale)}.
+ * Returns the format used by {@link #convertToPresentation(Object, ValueContext)}
+ * and {@link #convertToModel(Object, ValueContext)}.
*
* @param locale
* The locale to use
diff --git a/server/src/main/java/com/vaadin/data/converter/StringToBooleanConverter.java b/server/src/main/java/com/vaadin/data/converter/StringToBooleanConverter.java
index 67dca5c558..49fa043a86 100644
--- a/server/src/main/java/com/vaadin/data/converter/StringToBooleanConverter.java
+++ b/server/src/main/java/com/vaadin/data/converter/StringToBooleanConverter.java
@@ -25,7 +25,7 @@ import com.vaadin.data.ValueContext;
/**
* A converter that converts from {@link String} to {@link Boolean} and back.
* The String representation is given by {@link Boolean#toString()} or provided
- * in constructor {@link #StringToBooleanConverter(String, String)}.
+ * in constructor {@link StringToBooleanConverter#StringToBooleanConverter(String, String, String)}.
* <p>
* Leading and trailing white spaces are ignored when converting from a String.
* </p>
@@ -109,7 +109,7 @@ public class StringToBooleanConverter implements Converter<String, Boolean> {
/**
* Gets the locale-depended string representation for false. Default is
- * locale-independent value provided by {@link #getFalseString()}
+ * locale-independent value {@code false}
*
* @param locale
* to be used
@@ -121,7 +121,7 @@ public class StringToBooleanConverter implements Converter<String, Boolean> {
/**
* Gets the locale-depended string representation for true. Default is
- * locale-independent value provided by {@link #getTrueString()}
+ * locale-independent value {@code true}
*
* @param locale
* to be used
diff --git a/server/src/main/java/com/vaadin/data/converter/StringToDateConverter.java b/server/src/main/java/com/vaadin/data/converter/StringToDateConverter.java
index 790d3cb762..ffed8cf10b 100644
--- a/server/src/main/java/com/vaadin/data/converter/StringToDateConverter.java
+++ b/server/src/main/java/com/vaadin/data/converter/StringToDateConverter.java
@@ -41,8 +41,8 @@ import com.vaadin.data.ValueContext;
public class StringToDateConverter implements Converter<String, Date> {
/**
- * Returns the format used by {@link #convertToPresentation(Date, Locale)}
- * and {@link #convertToModel(String, Locale)}.
+ * Returns the format used by {@link #convertToPresentation(Date, ValueContext)}
+ * and {@link #convertToModel(String, ValueContext)}.
*
* @param locale
* The locale to use
diff --git a/server/src/main/java/com/vaadin/data/converter/StringToIntegerConverter.java b/server/src/main/java/com/vaadin/data/converter/StringToIntegerConverter.java
index c54903ef8e..bb64218ba0 100644
--- a/server/src/main/java/com/vaadin/data/converter/StringToIntegerConverter.java
+++ b/server/src/main/java/com/vaadin/data/converter/StringToIntegerConverter.java
@@ -48,8 +48,8 @@ public class StringToIntegerConverter
/**
* Returns the format used by
- * {@link #convertToPresentation(Integer, Locale)} and
- * {@link #convertToModel(String, Locale)}.
+ * {@link #convertToPresentation(Object, ValueContext)} and
+ * {@link #convertToModel(String, ValueContext)}.
*
* @param locale
* The locale to use
diff --git a/server/src/main/java/com/vaadin/data/converter/StringToLongConverter.java b/server/src/main/java/com/vaadin/data/converter/StringToLongConverter.java
index 8ddacdedfe..129e1aefea 100644
--- a/server/src/main/java/com/vaadin/data/converter/StringToLongConverter.java
+++ b/server/src/main/java/com/vaadin/data/converter/StringToLongConverter.java
@@ -47,8 +47,8 @@ public class StringToLongConverter
}
/**
- * Returns the format used by {@link #convertToPresentation(Long, Locale)}
- * and {@link #convertToModel(String, Locale)}.
+ * Returns the format used by {@link #convertToPresentation(Object, ValueContext)}
+ * and {@link #convertToModel(String, ValueContext)}.
*
* @param locale
* The locale to use
diff --git a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
index 40bf9e0880..7cd6b7390f 100644
--- a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
+++ b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
@@ -84,8 +84,8 @@ public class DataCommunicator<T, F> extends AbstractExtension {
* {@link DataKeyMapper}.
* <p>
* When the {@link DataCommunicator} is pushing new data to the client-side
- * via {@link DataCommunicator#pushData(long, Collection)},
- * {@link #addActiveData(Collection)} and {@link #cleanUp(Collection)} are
+ * via {@link DataCommunicator#pushData(int, Stream)},
+ * {@link #addActiveData(Stream)} and {@link #cleanUp(Stream)} are
* called with the same parameter. In the clean up method any dropped data
* objects that are not in the given collection will be cleaned up and
* {@link DataGenerator#destroyData(Object)} will be called for them.