diff options
author | Artur Signell <artur@vaadin.com> | 2014-12-09 16:58:01 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-12-10 20:56:27 +0000 |
commit | 22b20bc9fc4067a026cf08b5130bd20afa89d27e (patch) | |
tree | 4d20375ef6a8c44d0573b1d9a709155045004f51 /server/src/com/vaadin/ui/AbstractTextField.java | |
parent | 9107b8d8c520bd297ed7685d7a8482d1078604e9 (diff) | |
download | vaadin-framework-22b20bc9fc4067a026cf08b5130bd20afa89d27e.tar.gz vaadin-framework-22b20bc9fc4067a026cf08b5130bd20afa89d27e.zip |
Add public Field.isEmpty() and clear() (#15354)
Change-Id: I6bda7ff2a66a9ad172c899d855ca868881600be4
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractTextField.java')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractTextField.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/AbstractTextField.java b/server/src/com/vaadin/ui/AbstractTextField.java index 9293d38119..ea0372bc8c 100644 --- a/server/src/com/vaadin/ui/AbstractTextField.java +++ b/server/src/com/vaadin/ui/AbstractTextField.java @@ -317,7 +317,7 @@ public abstract class AbstractTextField extends AbstractField<String> implements } @Override - protected boolean isEmpty() { + public boolean isEmpty() { return super.isEmpty() || getValue().length() == 0; } |