Search in sources :

Example 1 with MultipleInputFieldType

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());
}
Also used : RadioGroupFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.selectors.radioGroup.type.RadioGroupFieldType) MultipleSubFormFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.relations.multipleSubform.type.MultipleSubFormFieldType) DecimalBoxFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.decimalBox.type.DecimalBoxFieldType) ListBoxFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.selectors.listBox.type.ListBoxFieldType) IntegerBoxFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.integerBox.type.IntegerBoxFieldType) SliderFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.slider.type.SliderFieldType) MultipleInputFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.lists.input.MultipleInputFieldType) TextBoxFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.textBox.type.TextBoxFieldType) DatePickerFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.datePicker.type.DatePickerFieldType) MultipleSelectorFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.lists.selector.MultipleSelectorFieldType) TextAreaFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.textArea.type.TextAreaFieldType) SubFormFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.relations.subForm.type.SubFormFieldType) MultipleSubFormFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.relations.multipleSubform.type.MultipleSubFormFieldType) CheckBoxFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.checkBox.type.CheckBoxFieldType) PostConstruct(javax.annotation.PostConstruct)

Example 2 with MultipleInputFieldType

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;
}
Also used : MultipleInputFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.lists.input.MultipleInputFieldType) MultipleSelectorFieldType(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.lists.selector.MultipleSelectorFieldType) FieldDefinition(org.kie.workbench.common.forms.model.FieldDefinition) FormDefinition(org.kie.workbench.common.forms.model.FormDefinition) TypeInfoImpl(org.kie.workbench.common.forms.model.impl.TypeInfoImpl) Date(java.util.Date)

Aggregations

MultipleInputFieldType (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.lists.input.MultipleInputFieldType)2 MultipleSelectorFieldType (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.lists.selector.MultipleSelectorFieldType)2 Date (java.util.Date)1 PostConstruct (javax.annotation.PostConstruct)1 CheckBoxFieldType (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.checkBox.type.CheckBoxFieldType)1 DatePickerFieldType (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.datePicker.type.DatePickerFieldType)1 DecimalBoxFieldType (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.decimalBox.type.DecimalBoxFieldType)1 IntegerBoxFieldType (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.integerBox.type.IntegerBoxFieldType)1 ListBoxFieldType (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.selectors.listBox.type.ListBoxFieldType)1 RadioGroupFieldType (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.selectors.radioGroup.type.RadioGroupFieldType)1 SliderFieldType (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.slider.type.SliderFieldType)1 TextAreaFieldType (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.textArea.type.TextAreaFieldType)1 TextBoxFieldType (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.textBox.type.TextBoxFieldType)1 MultipleSubFormFieldType (org.kie.workbench.common.forms.fields.shared.fieldTypes.relations.multipleSubform.type.MultipleSubFormFieldType)1 SubFormFieldType (org.kie.workbench.common.forms.fields.shared.fieldTypes.relations.subForm.type.SubFormFieldType)1 FieldDefinition (org.kie.workbench.common.forms.model.FieldDefinition)1 FormDefinition (org.kie.workbench.common.forms.model.FormDefinition)1 TypeInfoImpl (org.kie.workbench.common.forms.model.impl.TypeInfoImpl)1