Search in sources :

Example 16 with TextBoxFieldDefinition

use of org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.textBox.definition.TextBoxFieldDefinition in project kie-wb-common by kiegroup.

the class FieldPropertiesRendererTest method initFields.

protected void initFields() {
    lastNameField = new TextBoxFieldDefinition();
    lastNameField.setId("lastName");
    lastNameField.setName("employee_lastName");
    lastNameField.setLabel("Last Name");
    lastNameField.setBinding("lastName");
    lastNameField.setStandaloneClassName(String.class.getName());
}
Also used : TextBoxFieldDefinition(org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.textBox.definition.TextBoxFieldDefinition) Mockito.anyString(org.mockito.Mockito.anyString)

Aggregations

TextBoxFieldDefinition (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.textBox.definition.TextBoxFieldDefinition)16 CheckBoxFieldDefinition (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.checkBox.definition.CheckBoxFieldDefinition)7 DatePickerFieldDefinition (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.datePicker.definition.DatePickerFieldDefinition)6 FormDefinition (org.kie.workbench.common.forms.model.FormDefinition)6 Test (org.junit.Test)5 FieldDefinition (org.kie.workbench.common.forms.model.FieldDefinition)5 ArrayList (java.util.ArrayList)4 Date (java.util.Date)4 IntegerBoxFieldDefinition (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.integerBox.definition.IntegerBoxFieldDefinition)4 Before (org.junit.Before)3 DecimalBoxFieldDefinition (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.decimalBox.definition.DecimalBoxFieldDefinition)3 ModelPropertyImpl (org.kie.workbench.common.forms.model.impl.ModelPropertyImpl)3 TypeInfoImpl (org.kie.workbench.common.forms.model.impl.TypeInfoImpl)3 FormModelerContent (org.kie.workbench.common.forms.editor.model.FormModelerContent)2 TextAreaFieldDefinition (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.textArea.definition.TextAreaFieldDefinition)2 SubFormFieldDefinition (org.kie.workbench.common.forms.fields.shared.fieldTypes.relations.subForm.definition.SubFormFieldDefinition)2 TaskFormModel (org.kie.workbench.common.forms.jbpm.model.authoring.task.TaskFormModel)2 FormGenerationResult (org.kie.workbench.common.forms.jbpm.server.service.formGeneration.FormGenerationResult)2 ModelProperty (org.kie.workbench.common.forms.model.ModelProperty)2 Mockito.anyString (org.mockito.Mockito.anyString)2