Search in sources :

Example 16 with LayoutColumn

use of org.uberfire.ext.layout.editor.api.editor.LayoutColumn in project kie-wb-common by kiegroup.

the class LayoutGeneratorTest method checkSingleColumnRow.

protected void checkSingleColumnRow(LayoutRow row) {
    assertNotNull(row);
    assertNotNull(row.getLayoutColumns());
    assertEquals(1, row.getLayoutColumns().size());
    LayoutColumn column = row.getLayoutColumns().get(0);
    assertNotNull(column);
    assertEquals("12", column.getSpan());
    assertNotNull(column.getLayoutComponents());
    assertEquals(1, column.getLayoutComponents().size());
    assertTrue(settingsMap.containsKey(column.getLayoutComponents().get(0)));
}
Also used : LayoutColumn(org.uberfire.ext.layout.editor.api.editor.LayoutColumn)

Aggregations

LayoutColumn (org.uberfire.ext.layout.editor.api.editor.LayoutColumn)16 LayoutRow (org.uberfire.ext.layout.editor.api.editor.LayoutRow)12 LayoutTemplate (org.uberfire.ext.layout.editor.api.editor.LayoutTemplate)9 FieldDefinition (org.kie.workbench.common.forms.model.FieldDefinition)8 FormDefinition (org.kie.workbench.common.forms.model.FormDefinition)6 LayoutComponent (org.uberfire.ext.layout.editor.api.editor.LayoutComponent)6 DecimalBoxFieldDefinition (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.decimalBox.definition.DecimalBoxFieldDefinition)5 MultipleSubFormFieldDefinition (org.kie.workbench.common.forms.fields.shared.fieldTypes.relations.multipleSubform.definition.MultipleSubFormFieldDefinition)5 SubFormFieldDefinition (org.kie.workbench.common.forms.fields.shared.fieldTypes.relations.subForm.definition.SubFormFieldDefinition)5 IntStream (java.util.stream.IntStream)4 TextBoxFieldDefinition (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.textBox.definition.TextBoxFieldDefinition)4 Form (org.kie.workbench.common.forms.migration.legacy.model.Form)4 FormLayoutComponent (org.kie.workbench.common.forms.model.FormLayoutComponent)4 ArrayList (java.util.ArrayList)3 List (java.util.List)3 IntegerBoxFieldDefinition (org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.integerBox.definition.IntegerBoxFieldDefinition)3 Test (org.junit.Test)2 ColSpan (org.kie.workbench.common.forms.adf.definitions.settings.ColSpan)2 LayoutColumnDefinition (org.kie.workbench.common.forms.adf.service.definitions.layout.LayoutColumnDefinition)2 LayoutSettings (org.kie.workbench.common.forms.adf.service.definitions.layout.LayoutSettings)2