com.gwtext.client.widgets.layout.TableLayout
com.extjs.gxt.ui.client.widget.layout.TableLayout
1681168216831684168516861687168816891690169116921693
" }", " add(new Text());", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); // List<ColumnInfo> columns = layout.getColumns(); assertThat(columns).hasSize(2); { ColumnInfo column = columns.get(0); assertEquals(0, column.getIndex()); assertFalse(column.isEmpty());
1714171517161717171817191720172117221723172417251726
" add(label_2);", " }", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); // List<RowInfo> rows = layout.getRows(); assertThat(rows).hasSize(2); { RowInfo row = rows.get(0); assertEquals(0, row.getIndex()); assertFalse(row.isEmpty());
1744174517461747174817491750175117521753175417551756
" }", " add(new Text());", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); // List<RowInfo> rows = layout.getRows(); assertThat(rows).hasSize(2); { RowInfo row = rows.get(0); assertEquals(0, row.getIndex()); assertFalse(row.isEmpty());
178717881789179017911792179317941795179617971798179918001801
" add(button);", " }", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); // try { panel.startEdit(); layout.command_deleteColumn(1, true); } finally { panel.endEdit(); } assertEditor( "public class Test extends LayoutContainer {",
183618371838183918401841184218431844184518461847184818491850
188618871888188918901891189218931894189518961897189818991900
" add(button);", " }", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); // try { panel.startEdit(); layout.getColumns().get(1).delete(); } finally { panel.endEdit(); } assertEditor( "public class Test extends LayoutContainer {",
194319441945194619471948194919501951195219531954195519561957
" add(button);", " }", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); // try { panel.startEdit(); layout.command_deleteRow(1, true); } finally { panel.endEdit(); } assertEditor( "public class Test extends LayoutContainer {",
199219931994199519961997199819992000200120022003200420052006
20362037203820392040204120422043204420452046204720482049205020512052
" add(button);", " }", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); // try { layout.startEdit(); layout.command_MOVE_COLUMN(1, 0); } finally { layout.endEdit(); } assertEditor( "public class Test extends LayoutContainer {", " public Test() {", " setLayout(new TableLayout(2));",
20812082208320842085208620872088208920902091209220932094209520962097
" add(button);", " }", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); // try { layout.startEdit(); layout.command_MOVE_COLUMN(0, 2); } finally { layout.endEdit(); } assertEditor( "public class Test extends LayoutContainer {", " public Test() {", " setLayout(new TableLayout(2));",