summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2012-09-24 14:48:13 +0300
committerJohannes Dahlström <johannesd@vaadin.com>2012-09-24 15:02:12 +0300
commit1d97c958748ebdf06abd28a0f2acec8c179e9d1d (patch)
tree8eeb542e39cd8ddaeedf038fad805ad2c0b6b9ad /server
parentdda62594f56e12590c5a3517585ad529e2df5c56 (diff)
downloadvaadin-framework-1d97c958748ebdf06abd28a0f2acec8c179e9d1d.tar.gz
vaadin-framework-1d97c958748ebdf06abd28a0f2acec8c179e9d1d.zip
Add removeAllValidators() to Validatable (#9542)
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/data/Validatable.java7
-rw-r--r--server/src/com/vaadin/ui/AbstractField.java1
2 files changed, 8 insertions, 0 deletions
diff --git a/server/src/com/vaadin/data/Validatable.java b/server/src/com/vaadin/data/Validatable.java
index 724a688efb..a91afa1f4d 100644
--- a/server/src/com/vaadin/data/Validatable.java
+++ b/server/src/com/vaadin/data/Validatable.java
@@ -58,6 +58,13 @@ public interface Validatable extends Serializable {
void removeValidator(Validator validator);
/**
+ * Removes all validators from this object, as if
+ * {@link #removeValidator(Validator) removeValidator} was called for each
+ * registered validator.
+ */
+ void removeAllValidators();
+
+ /**
* <p>
* Returns a collection of all validators currently registered for the
* object. The collection may be immutable and it may not be safe to call
diff --git a/server/src/com/vaadin/ui/AbstractField.java b/server/src/com/vaadin/ui/AbstractField.java
index 7fc5252eee..d6dd03c171 100644
--- a/server/src/com/vaadin/ui/AbstractField.java
+++ b/server/src/com/vaadin/ui/AbstractField.java
@@ -805,6 +805,7 @@ public abstract class AbstractField<T> extends AbstractComponent implements
/**
* Removes all validators from the field.
*/
+ @Override
public void removeAllValidators() {
if (validators != null) {
validators.clear();