From f7feb7b15aae9abb360c799dc7bf873a0d5a68ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Dahlstr=C3=B6m?= Date: Thu, 5 Apr 2012 10:50:00 +0000 Subject: [PATCH] Implemented #8307: Added AbstractField#removeAllValidators() svn changeset:23407/svn branch:6.8 --- src/com/vaadin/ui/AbstractField.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/com/vaadin/ui/AbstractField.java b/src/com/vaadin/ui/AbstractField.java index ac3e14b2b6..f3939de6e1 100644 --- a/src/com/vaadin/ui/AbstractField.java +++ b/src/com/vaadin/ui/AbstractField.java @@ -682,6 +682,16 @@ public abstract class AbstractField extends AbstractComponent implements Field, requestRepaint(); } + /** + * Removes all validators from the field. + */ + public void removeAllValidators() { + if (validators != null) { + validators.clear(); + } + requestRepaint(); + } + /** * Tests the current value against registered validators if the field is not * empty. If the field is empty it is considered valid if it is not required -- 2.39.5