//
// ADD
//
////////////////////////////////////////////////////////////////////////////
public void test_ADD() throws Exception {
PanelInfo panel =
parseJavaInfo(
"import com.google.gwt.user.client.ui.Button;",
"public class Test extends Panel {",
" public Test() {",
" setLayout(new TableLayout(1));",
" {",
" Panel composite = new Panel();",
" {",
" Button button = new Button();",
" composite.add(button);",
" }",
" add(composite);",
" }",
" }",
"}");
panel.refresh();
TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
PanelInfo composite = (PanelInfo) panel.getChildrenWidgets().get(0);
WidgetInfo button = composite.getChildrenWidgets().get(0);
//
layout.command_ADD(button, 0, false, 1, false);
assertEditor(
"import com.google.gwt.user.client.ui.Button;",
"public class Test extends Panel {",