From 6c7d71e9ca16514eca8e564ec1e2b4e4e5051ceb Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Wed, 7 Apr 2004 19:48:39 +0000 Subject: [PATCH] Adds protected method #resetValues git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2284 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smackx/FormField.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/org/jivesoftware/smackx/FormField.java b/source/org/jivesoftware/smackx/FormField.java index a45bf7336..9cb401443 100644 --- a/source/org/jivesoftware/smackx/FormField.java +++ b/source/org/jivesoftware/smackx/FormField.java @@ -263,6 +263,16 @@ public class FormField { } } + /** + * Removes all the values of the field. + * + */ + protected void resetValues() { + synchronized (values) { + values.removeAll(new ArrayList(values)); + } + } + /** * Adss an available options to the question that the user has in order to answer * the question.