com.gwtext.client.widgets.layout.TableLayout
com.extjs.gxt.ui.client.widget.layout.TableLayout
180918101811181218131814181518161817181818191820182118221823
" add(button);", " }", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); // try { panel.startEdit(); layout.command_deleteRow(1, true); } finally { panel.endEdit(); } assertEditor( "import com.google.gwt.user.client.ui.Button;",
18551856185718581859186018611862186318641865186618671868186918701871
" add(button);", " }", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); // try { layout.startEdit(); layout.command_MOVE_COLUMN(1, 0); } finally { layout.endEdit(); } assertEditor( "import com.google.gwt.user.client.ui.Button;", "public class Test extends Panel {", " public Test() {",
100101102103104105106107108109110111
" setLayout(new TableLayout(1));", " }", "}"); panel.refresh(); // TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); IGridInfo gridInfo = layout.getGridInfo(); assertThat(gridInfo.getRowCount()).isZero(); assertThat(gridInfo.getRowIntervals()).isEmpty(); assertThat(gridInfo.getColumnCount()).isZero(); assertThat(gridInfo.getColumnIntervals()).isEmpty(); }
118119120121122123124125126127128129
" setLayout(new TableLayout(2));", " }", "}"); panel.refresh(); // TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); IGridInfo gridInfo = layout.getGridInfo(); assertThat(gridInfo.getRowCount()).isZero(); assertThat(gridInfo.getRowIntervals()).isEmpty(); assertThat(gridInfo.getColumnCount()).isZero(); assertThat(gridInfo.getColumnIntervals()).isEmpty(); }
331332333334335336337338339340341342
" add(label_3);", " }", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); IGridInfo gridInfo = layout.getGridInfo(); // assertEquals(2, gridInfo.getColumnCount()); assertEquals(2, gridInfo.getRowCount()); // getColumnIntervals() {
423424425426427428429430431432433434
" add(text);", " }", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); IGridInfo gridInfo = layout.getGridInfo(); // assertEquals(2, gridInfo.getColumnCount()); assertEquals(1, gridInfo.getRowCount()); // getColumnIntervals() {
465466467468469470471472473474475476
" add(text);", " }", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); IGridInfo gridInfo = layout.getGridInfo(); // assertEquals(1, gridInfo.getColumnCount()); assertEquals(1, gridInfo.getRowCount()); // getColumnIntervals() {
511512513514515516517518519520521522
" add(label_4);", " }", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); IGridInfo gridInfo = layout.getGridInfo(); // assertEquals(3, gridInfo.getColumnCount()); assertEquals(2, gridInfo.getRowCount()); // getColumnIntervals() {
542543544545546547548549550551552553
" }", " add(new Text());", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); IGridInfo gridInfo = layout.getGridInfo(); WidgetInfo button = panel.getWidgets().get(0); // assertEquals(2, gridInfo.getColumnCount()); assertEquals(1, gridInfo.getRowCount()); assertSame(button, gridInfo.getOccupied(0, 0));
572573574575576577578579580581582583
" add(label);", " }", " }", "}"); panel.refresh(); TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout(); IGridInfo gridInfo = layout.getGridInfo(); // assertEquals(2, gridInfo.getColumnCount()); assertEquals(2, gridInfo.getRowCount()); // getColumnIntervals() {