Object value = panelConf.get(prop);
if (value instanceof Map) {
Map<String, Object> map = (Map<String, Object>) value;
String component_type = (String) ((Map) value).get(FormConstants.COMPONENT_TYPE);
if (component_type != null) {
PropertyWidget widget = null;
if (component_type.equals(FormConstants.TEXTFIELD)) {
widget = createTextField(map, prop);
} else if (component_type.equals(FormConstants.TEXTAREA)) {
widget = createTextArea(map, prop);
} else if (component_type.equals(FormConstants.COMBOBOX)) {
widget = createComboBox(map, prop);
} else if (component_type.equals(FormConstants.HTMLEDITOR)) {
widget = createHtmlEditor(map, prop);
} else if (component_type.equals(FormConstants.FIELDSET)) {
// widget = createFieldSet((Map)value);
} else if (component_type.equals(FormConstants.MULTITEXTFIELD)) {
widget = createMultiTextField(map, prop);
} else if (component_type.equals(FormConstants.INSTANCETEXTFIELD)) {
widget = createInstanceTextField(map, prop);
} else if (component_type.equals(FormConstants.INSTANCEREFERENCE)) {
widget = createInstanceReferenceField(map, prop);
} else if (component_type.equals(FormConstants.GRID)) {
widget = createGrid(map, prop);
} else if (component_type.equals(FormConstants.EXTERNALREFERENCE)) {
widget = createExternalReference(map, prop);
} else if (component_type.equals(FormConstants.CLASS_SELECTION_FIELD)) {
widget = createClassSelectionField(map, prop);
} else if (component_type.equals(FormConstants.PROPERTY_SELECTION_FIELD)) {
widget = createPropertySelectionField(map, prop);
} else if (component_type.equals(FormConstants.HTMLMESSAGE)) {
widget = createHtmlMessage(map, prop);
} else if (component_type.equals(FormConstants.INSTANCE_CHECKBOX)) {
widget = createInstanceCheckBox(map, prop);
} else if (component_type.equals(FormConstants.INSTANCE_RADIOBUTTON)) {
widget = createInstanceRadioButton(map, prop);
} else if (component_type.equals(FormConstants.INSTANCE_COMBOBOX)) {
widget = createInstanceComboBox(map, prop);
}
if (widget != null && widget.getComponent() != null) {
widgets.add(widget);
panel.add(widget.getComponent());
addToMap(panel, widget);
}
}
}
}