Package com.google.gdt.eclipse.designer.gwtext.model.widgets

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.ContainerInfo.refresh()


            "// filler filler filler",
            "public class Test extends RowPanel {",
            "  public Test() {",
            "  }",
            "}");
    panel.refresh();
    assertNoErrors(panel);
    assertHierarchy(
        "{this: test.client.RowPanel} {this} {}",
        "  {implicit-layout: com.gwtext.client.widgets.layout.RowLayout} {implicit-layout} {}");
    assertTrue(panel.hasLayout());
View Full Code Here


            "// filler filler filler",
            "public class Test extends Panel {",
            "  public Test() {",
            "  }",
            "}");
    panel.refresh();
    // initial state
    assertInstanceOf(DefaultLayoutInfo.class, panel.getLayout());
    assertHierarchy(
        "{this: com.gwtext.client.widgets.Panel} {this} {}",
        "  {implicit-layout: default} {implicit-layout} {}");
View Full Code Here

            "public class Test extends Panel {",
            "  public Test() {",
            "    setLayout(new RowLayout());",
            "  }",
            "}");
    panel.refresh();
    // initial state
    assertHierarchy(
        "{this: com.gwtext.client.widgets.Panel} {this} {/setLayout(new RowLayout())/}",
        "  {new: com.gwtext.client.widgets.layout.RowLayout} {empty} {/setLayout(new RowLayout())/}");
    // delete layout
View Full Code Here

            "  public Test() {",
            "    add(new com.gwtext.client.widgets.form.Label());",
            "    add(new com.google.gwt.user.client.ui.Button());",
            "  }",
            "}");
    panel.refresh();
    WidgetInfo label = panel.getChildrenWidgets().get(0);
    WidgetInfo button = panel.getChildrenWidgets().get(1);
    // getID()
    String labelID = ContainerInfo.getID(label);
    String buttonID = ContainerInfo.getID(button);
View Full Code Here

            "import com.gwtext.client.widgets.Panel;",
            "public class Test extends Panel {",
            "  public Test() {",
            "  }",
            "}");
    panel.refresh();
    assertTrue(panel.hasLayout());
    // prepare "Set Layout" menu manager
    IMenuManager layoutManager;
    {
      IMenuManager menuManager = getContextMenu(panel);
View Full Code Here

            "import com.gwtext.client.widgets.FocusPanel;",
            "public class Test extends FocusPanel {",
            "  public Test() {",
            "  }",
            "}");
    panel.refresh();
    // no layout
    assertFalse(panel.hasLayout());
    // ...so, no "Set layout" menu
    {
      IMenuManager menuManager = getContextMenu(panel);
View Full Code Here

            "      firstCol.add(portlet);;",
            "    }",
            "    add(firstCol, new ColumnLayoutData(.33));",
            "  }",
            "}");
    panel.refresh();
    //
    assertHierarchy(
        "{this: com.gwtext.client.widgets.portal.Portal} {this} {/add(firstCol, new ColumnLayoutData(.33))/}",
        "  {implicit-layout: com.gwtext.client.widgets.layout.ColumnLayout} {implicit-layout} {}",
        "  {new: com.gwtext.client.widgets.portal.PortalColumn} {local-unique: firstCol} {/new PortalColumn()/ /firstCol.setPaddings(10, 10, 0, 10)/ /firstCol.add(portlet)/ /add(firstCol, new ColumnLayoutData(.33))/}",
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.