void (final LwContainer component, final FormSourceCodeGenerator generator, final String variable) { FormLayout layout = (FormLayout) component.getLayout(); generator.startMethodCall(variable, "setLayout"); generator.startConstructor(FormLayout.class.getName()); generator.push(FormLayoutUtils.getEncodedColumnSpecs(layout)); generator.push(FormLayoutUtils.getEncodedRowSpecs(layout)); generator.endConstructor(); generator.endMethod(); generateGroups(generator, variable, "setRowGroups", layout.getRowGroups()); generateGroups(generator, variable, "setColumnGroups", layout.getColumnGroups()); }