aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/AbstractTextField.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/AbstractTextField.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/AbstractTextField.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/ui/AbstractTextField.java b/server/src/main/java/com/vaadin/ui/AbstractTextField.java
index 9c2720efd8..ee2ccc6604 100644
--- a/server/src/main/java/com/vaadin/ui/AbstractTextField.java
+++ b/server/src/main/java/com/vaadin/ui/AbstractTextField.java
@@ -79,9 +79,19 @@ public abstract class AbstractTextField extends AbstractField<String>
registerRpc(new AbstractTextFieldFocusAndBlurRpcImpl());
}
+ /**
+ * Sets the value of this text field. If the new value is not equal to
+ * {@code getValue()}, fires a {@link ValueChangeEvent}. Throws
+ * {@code NullPointerException} if the value is not null.
+ *
+ * @param value
+ * the new value, not {@code null}
+ * @throws NullPointerException
+ * if {@code value} is {@code null}
+ */
@Override
public void setValue(String value) {
- Objects.requireNonNull(value, "Null value not supported");
+ Objects.requireNonNull(value, "value cannot be null");
setValue(value, false);
}