if (type.equals(FormField.Type.bool)) { String o = valueList.get(0).toString(); boolean isSelected = o.equals("1"); addField(label, box, variable); else if (type.equals(FormField.Type.text_single) || type.equals(FormField.Type.jid_single)) { String v = ""; if (valueList.size() > 0) { else if (type.equals(FormField.Type.text_multi) || type.equals(FormField.Type.jid_multi)) { StringBuilder buf = new StringBuilder(); for ( FormField.Option option : field.getOptions() ) { else if (type.equals(FormField.Type.text_private)) { addField(label, new JPasswordField(), variable); else if (type.equals(FormField.Type.list_single)) { JComboBox box = new JComboBox(); for ( final FormField.Option option : field.getOptions() ) { else if (type.equals(FormField.Type.list_multi)) { CheckBoxList checkBoxList = new CheckBoxList(); for (CharSequence value : field.getValues() ) {
if (type.equals(FormField.Type.bool)) { boolean isSelected; if ( valueList == null || valueList.isEmpty() ) addField(label, box, variable); else if (type.equals(FormField.Type.text_single) || type.equals(FormField.Type.jid_single)) { String value = valueList.get(0).toString(); submitForm.setAnswer( variable, value ); addField(label, new JTextField(value), variable); else if (type.equals(FormField.Type.text_multi) || type.equals(FormField.Type.jid_multi)) { StringBuilder buf = new StringBuilder(); final Iterator<CharSequence> iter = valueList.iterator(); else if (type.equals(FormField.Type.text_private)) { String value = null; if ( !valueList.isEmpty() ) else if (type.equals(FormField.Type.list_single)) { JComboBox box = new JComboBox(); for ( final FormField.Option option : field.getOptions() ) { else if (type.equals(FormField.Type.list_multi)) { CheckBoxList checkBoxList = new CheckBoxList(); final List<CharSequence> values = field.getValues();