From b71039660bf73fb537bfafe09f39c993ba84f1c1 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sat, 10 Jan 2015 18:01:07 +0100 Subject: [PATCH] Improve data form API Add DataForm.getField(String) DataForm.getHiddenFormTypeField() --- .../jivesoftware/smackx/xdata/FormField.java | 24 +++++++++- .../smackx/xdata/packet/DataForm.java | 44 ++++++++++++++++--- 2 files changed, 60 insertions(+), 8 deletions(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/FormField.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/FormField.java index 924a8a573..92d11bebf 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/FormField.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/FormField.java @@ -35,6 +35,11 @@ public class FormField { public static final String ELEMENT = "field"; + /** + * The constant String "FORM_TYPE" + */ + public static final String FORM_TYPE = "FORM_TYPE"; + /** * Form Field Types as defined in XEP-4 § 3.3. * @@ -118,10 +123,11 @@ public class FormField { } } + private final String variable; + private String description; private boolean required = false; private String label; - private String variable; private Type type; private final List