Package org.jivesoftware.smackx.packet.DataForm

Examples of org.jivesoftware.smackx.packet.DataForm.Item


            columns.add(new Column(field.getLabel(), field.getVariable(), field.getType()));
        }

        // Add the rows to the report based on the form's items
        for (Iterator<Item> items = dataForm.getItems(); items.hasNext();) {
            Item item = items.next();
            List<Field> fieldList = new ArrayList<Field>(columns.size());
            FormField field;
            for (Iterator<FormField> fields = item.getFields(); fields.hasNext();) {
                field = fields.next();
                // The field is created with all the values of the data form's field
                List<String> values = new ArrayList<String>();
                for (Iterator<String> it=field.getValues(); it.hasNext();) {
                    values.add(it.next());
View Full Code Here

TOP

Related Classes of org.jivesoftware.smackx.packet.DataForm.Item

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.