void (final FormLayout formLayout, final FormSpec newSpec, final int cell, boolean isRow) { if (isRow) { formLayout.setRowSpec(cell, (RowSpec) newSpec); } else { formLayout.setColumnSpec(cell, (ColumnSpec) newSpec); } }