aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/TextField.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com/vaadin/ui/TextField.java')
-rw-r--r--server/src/com/vaadin/ui/TextField.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/TextField.java b/server/src/com/vaadin/ui/TextField.java
index 563810c76a..2a61e93211 100644
--- a/server/src/com/vaadin/ui/TextField.java
+++ b/server/src/com/vaadin/ui/TextField.java
@@ -48,7 +48,7 @@ public class TextField extends AbstractTextField {
* Constructs an empty <code>TextField</code> with no caption.
*/
public TextField() {
- setValue("");
+ clear();
}
/**
@@ -107,7 +107,7 @@ public class TextField extends AbstractTextField {
/*
* (non-Javadoc)
*
- * @see com.vaadin.ui.AbstractField#readDesign(org.jsoup.nodes.Element ,
+ * @see com.vaadin.ui.AbstractTextField#readDesign(org.jsoup.nodes.Element,
* com.vaadin.ui.declarative.DesignContext)
*/
@Override
@@ -135,4 +135,15 @@ public class TextField extends AbstractTextField {
DesignAttributeHandler.writeAttribute("value", attr, getValue(),
def.getValue(), String.class);
}
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see com.vaadin.ui.AbstractField#clear()
+ */
+ @Override
+ public void clear() {
+ setValue("");
+ }
+
}