use of org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.lists.input.MultipleInputFieldType in project kie-wb-common by kiegroup.
the class EditorFieldTypesProviderImpl method init.
@PostConstruct
public void init() {
paletteFieldTypes.add(new TextBoxFieldType());
paletteFieldTypes.add(new TextAreaFieldType());
paletteFieldTypes.add(new IntegerBoxFieldType());
paletteFieldTypes.add(new DecimalBoxFieldType());
paletteFieldTypes.add(new CheckBoxFieldType());
paletteFieldTypes.add(new DatePickerFieldType());
paletteFieldTypes.add(new SliderFieldType());
paletteFieldTypes.add(new ListBoxFieldType());
paletteFieldTypes.add(new RadioGroupFieldType());
paletteFieldTypes.add(new MultipleSelectorFieldType());
paletteFieldTypes.add(new MultipleInputFieldType());
fieldPropertiesFieldTypes.addAll(paletteFieldTypes);
fieldPropertiesFieldTypes.add(new SubFormFieldType());
fieldPropertiesFieldTypes.add(new MultipleSubFormFieldType());
}
use of org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.lists.input.MultipleInputFieldType in project kie-wb-common by kiegroup.
the class SimpleFieldTypesBackendFormRenderingContextManagerTest method getRootForm.
@Override
protected FormDefinition getRootForm() {
FormDefinition form = new FormDefinition();
FieldDefinition field = fieldManager.getDefinitionByDataType(new TypeInfoImpl(String.class.getName()));
field.setName(STRING_FIELD);
field.setBinding(STRING_FIELD);
form.getFields().add(field);
field = fieldManager.getDefinitionByDataType(new TypeInfoImpl(Integer.class.getName()));
field.setName(INTEGER_FIELD);
field.setBinding(INTEGER_FIELD);
form.getFields().add(field);
field = fieldManager.getDefinitionByDataType(new TypeInfoImpl(Date.class.getName()));
field.setName(DATE_FIELD);
field.setBinding(DATE_FIELD);
form.getFields().add(field);
field = fieldManager.getDefinitionByDataType(new TypeInfoImpl(Boolean.class.getName()));
field.setName(BOOLEAN_FIELD);
field.setBinding(BOOLEAN_FIELD);
form.getFields().add(field);
field = fieldManager.getDefinitionByFieldType(new MultipleInputFieldType());
field.setName(MULTIPLE_INPUT_FIELD);
field.setBinding(MULTIPLE_INPUT_FIELD);
form.getFields().add(field);
field = fieldManager.getDefinitionByFieldType(new MultipleSelectorFieldType());
field.setName(MULTIPLE_SELECTOR_FIELD);
field.setBinding(MULTIPLE_SELECTOR_FIELD);
form.getFields().add(field);
return form;
}
Aggregations