" panel.getFlexCellFormatter().setRowSpan(0, 1, 2);",
" }",
"}");
frame.refresh();
assertNoErrors(frame);
final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
assertThat(panel.getColumns()).hasSize(3);
assertThat(panel.getRows()).hasSize(2);
assertEquals(
"3 2 [3, 3] {(0,0)=(1,1) (1,0)=(1,2) (2,0)=(1,1) (0,1)=(1,1) (1,1)=(1,1) (2,1)=(1,1)}",
panel.getStatus().toString());
// do operation
ExecutionUtils.run(frame, new RunnableEx() {
public void run() throws Exception {
WidgetInfo buttonB = panel.getChildrenWidgets().get(1);
frame.command_MOVE2(buttonB, null);
}
});
assertEditor(
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" RootPanel rootPanel = RootPanel.get();",
" FlexTable panel = new FlexTable();",
" rootPanel.add(panel);",
" panel.setWidget(1, 0, new Button('A'));",
" panel.setWidget(1, 2, new Button('C'));",
" {",
" Button button = new Button('B');",
" rootPanel.add(button);",
" }",
" }",
"}");
assertThat(panel.getColumns()).hasSize(3);
assertThat(panel.getRows()).hasSize(2);
assertEquals(
"3 2 [3, 3] {(0,0)=(1,1) (1,0)=(1,1) (2,0)=(1,1) (0,1)=(1,1) (1,1)=(1,1) (2,1)=(1,1)}",
panel.getStatus().toString());
}