" }",
"}");
}
public void test_deleteRow() throws Exception {
PanelInfo panel =
parseJavaInfo(
"import com.google.gwt.user.client.ui.Button;",
"public class Test extends Panel {",
" public Test() {",
" setLayout(new TableLayout(2));",
" {",
" Button button = new Button('0');",
" TableLayoutData tableLayoutData = new TableLayoutData(1);",
" tableLayoutData.setRowspan(3);",
" add(button, tableLayoutData);",
" }",
" {",
" Button button = new Button('1');",
" add(button);",
" }",
" {",
" Button button = new Button('2');",
" add(button);",
" }",
" {",
" Button button = new Button('3');",
" 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;",
"public class Test extends Panel {",
" public Test() {",