diff options
author | Matti Hosio <mhosio@vaadin.com> | 2014-12-17 10:31:33 +0200 |
---|---|---|
committer | Matti Hosio <mhosio@vaadin.com> | 2014-12-17 10:31:33 +0200 |
commit | e547f024533bef83b8c8c8e522240f34765c894d (patch) | |
tree | 4610ad629b996df6d7882a8f9190922a467046d2 /server/src/com/vaadin/ui/AbstractField.java | |
parent | 8a0a1bdb4630f39214a039a2689bfa5a1431a413 (diff) | |
parent | a9f24b00e9ddcd5ca19ac2907e0bf2413f036af4 (diff) | |
download | vaadin-framework-e547f024533bef83b8c8c8e522240f34765c894d.tar.gz vaadin-framework-e547f024533bef83b8c8c8e522240f34765c894d.zip |
Merge remote-tracking branch 'origin/master' into declarative
Conflicts:
server/src/com/vaadin/ui/TextField.java
Change-Id: I289cb9ec80d494ab79aec11a43708abf5b403a00
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractField.java')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractField.java | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/server/src/com/vaadin/ui/AbstractField.java b/server/src/com/vaadin/ui/AbstractField.java index 6d4b5ff2d7..9b9c7efd86 100644 --- a/server/src/com/vaadin/ui/AbstractField.java +++ b/server/src/com/vaadin/ui/AbstractField.java @@ -1508,25 +1508,12 @@ public abstract class AbstractField<T> extends AbstractComponent implements markAsDirty(); } - /** - * Is the field empty? - * - * In general, "empty" state is same as null. As an exception, TextField - * also treats empty string as "empty". - */ - protected boolean isEmpty() { + @Override + public boolean isEmpty() { return (getFieldValue() == null); } - /** - * Clear the value of the field. - * <p> - * The field value is typically reset to the initial value of the field but - * this is not mandatory. Calling {@link #isEmpty()} on a cleared field must - * always returns true. - * - * @since - */ + @Override public void clear() { setValue(null); } |