summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/TextField.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2014-12-02 21:19:06 +0200
committerVaadin Code Review <review@vaadin.com>2014-12-10 06:48:29 +0000
commitf1f089772749a0eb4b031f1876b95bb684565473 (patch)
tree64f0e28a880db0aaeb0f0f1e18e0bd9d374f8d8b /server/src/com/vaadin/ui/TextField.java
parent52fb8cd941caad7d9c6277d7b154498abb6b99e6 (diff)
downloadvaadin-framework-f1f089772749a0eb4b031f1876b95bb684565473.tar.gz
vaadin-framework-f1f089772749a0eb4b031f1876b95bb684565473.zip
Make TextField.clear() use empty string to be consistent with constructor (#14755)
Change-Id: Ic50ff305277e54f50353fc948b31a89a6b3e083f
Diffstat (limited to 'server/src/com/vaadin/ui/TextField.java')
-rw-r--r--server/src/com/vaadin/ui/TextField.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/TextField.java b/server/src/com/vaadin/ui/TextField.java
index fb1e4284a2..1fc10c6ced 100644
--- a/server/src/com/vaadin/ui/TextField.java
+++ b/server/src/com/vaadin/ui/TextField.java
@@ -43,7 +43,7 @@ public class TextField extends AbstractTextField {
* Constructs an empty <code>TextField</code> with no caption.
*/
public TextField() {
- setValue("");
+ clear();
}
/**
@@ -99,4 +99,14 @@ public class TextField extends AbstractTextField {
setCaption(caption);
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see com.vaadin.ui.AbstractField#clear()
+ */
+ @Override
+ public void clear() {
+ setValue("");
+ }
+
}