Examples of LayoutContainerInfo


Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.LayoutContainerInfo

  //
  // Tree
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_tree_CREATE() throws Exception {
    LayoutContainerInfo container =
        openLayoutContainer(
            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new AbsoluteLayout());",
            "  }",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.LayoutContainerInfo

        "}");
    tree.assertPrimarySelected(newBox);
  }

  public void test_tree_PASTE() throws Exception {
    LayoutContainerInfo container =
        openLayoutContainer(
            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new AbsoluteLayout());",
            "    {",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.LayoutContainerInfo

        "}");
    tree.assertPrimarySelected(boxB);
  }

  public void test_tree_ADD() throws Exception {
    LayoutContainerInfo container =
        openLayoutContainer(
            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new AbsoluteLayout());",
            "    {",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.LayoutContainerInfo

  //
  // Test
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_setLayout() throws Exception {
    LayoutContainerInfo container =
        parseJavaInfo(
            "// filler filler filler",
            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "  }",
            "}");
    // set TableRowLayout
    TableRowLayoutInfo layout =
        createJavaInfo("com.extjs.gxt.ui.client.widget.layout.TableRowLayout");
    container.setLayout(layout);
    assertEditor(
        "// filler filler filler",
        "public class Test extends LayoutContainer {",
        "  public Test() {",
        "    setLayout(new TableRowLayout());",
        "  }",
        "}");
    assertHierarchy(
        "{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {/setLayout(new TableRowLayout())/}",
        "  {new: com.extjs.gxt.ui.client.widget.layout.TableRowLayout} {empty} {/setLayout(new TableRowLayout())/}");
    assertSame(layout, container.getLayout());
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.LayoutContainerInfo

        "  {new: com.extjs.gxt.ui.client.widget.layout.TableRowLayout} {empty} {/setLayout(new TableRowLayout())/}");
    assertSame(layout, container.getLayout());
  }

  public void test_parse() throws Exception {
    LayoutContainerInfo container =
        parseJavaInfo(
            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new TableRowLayout());",
            "    {",
            "      Button button = new Button();",
            "      add(button);",
            "    }",
            "  }",
            "}");
    container.refresh();
    assertHierarchy(
        "{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {/setLayout(new TableRowLayout())/ /add(button)/}",
        "  {new: com.extjs.gxt.ui.client.widget.layout.TableRowLayout} {empty} {/setLayout(new TableRowLayout())/}",
        "  {new: com.extjs.gxt.ui.client.widget.button.Button} {local-unique: button} {/new Button()/ /add(button)/}",
        "    {virtual-layout_data: com.extjs.gxt.ui.client.widget.layout.TableData} {virtual-layout-data} {}");
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.LayoutContainerInfo

        "  {new: com.extjs.gxt.ui.client.widget.button.Button} {local-unique: button} {/new Button()/ /add(button)/}",
        "    {virtual-layout_data: com.extjs.gxt.ui.client.widget.layout.TableData} {virtual-layout-data} {}");
  }

  public void test_command_CREATE() throws Exception {
    LayoutContainerInfo container =
        parseJavaInfo(
            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new TableRowLayout());",
            "  }",
            "}");
    container.refresh();
    TableRowLayoutInfo layout = (TableRowLayoutInfo) container.getLayout();
    //
    ComponentInfo newButton = createButton();
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    flowContainer.command_CREATE(newButton, null);
    assertEditor(
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.LayoutContainerInfo

  //
  // Tests
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_setLayout() throws Exception {
    LayoutContainerInfo container =
        parseJavaInfo(
            "// filler filler filler",
            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "  }",
            "}");
    container.refresh();
    // set AbsoluteLayout
    AbsoluteLayoutInfo layout =
        createJavaInfo("com.extjs.gxt.ui.client.widget.layout.AbsoluteLayout");
    container.setLayout(layout);
    assertEditor(
        "// filler filler filler",
        "public class Test extends LayoutContainer {",
        "  public Test() {",
        "    setLayout(new AbsoluteLayout());",
        "  }",
        "}");
    assertHierarchy(
        "{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {/setLayout(new AbsoluteLayout())/}",
        "  {new: com.extjs.gxt.ui.client.widget.layout.AbsoluteLayout} {empty} {/setLayout(new AbsoluteLayout())/}");
    assertSame(layout, container.getLayout());
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.LayoutContainerInfo

        "  {new: com.extjs.gxt.ui.client.widget.layout.AbsoluteLayout} {empty} {/setLayout(new AbsoluteLayout())/}");
    assertSame(layout, container.getLayout());
  }

  public void test_setLayout_applyBounds() throws Exception {
    LayoutContainerInfo container =
        parseJavaInfo(
            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new RowLayout(Orientation.HORIZONTAL));",
            "    {",
            "      Button button = new Button();",
            "      add(button, new RowData(200, 100, new Margins(20, 0, 0, 10)));",
            "    }",
            "  }",
            "}");
    container.refresh();
    // set AbsoluteLayout
    AbsoluteLayoutInfo layout =
        createJavaInfo("com.extjs.gxt.ui.client.widget.layout.AbsoluteLayout");
    container.setLayout(layout);
    assertEditor(
        "public class Test extends LayoutContainer {",
        "  public Test() {",
        "    setLayout(new AbsoluteLayout());",
        "    {",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.LayoutContainerInfo

        "  {new: com.extjs.gxt.ui.client.widget.button.Button} {local-unique: button} {/new Button()/ /add(button, new AbsoluteData(10, 20))/ /button.setSize('190px', '80px')/}",
        "    {new: com.extjs.gxt.ui.client.widget.layout.AbsoluteData} {empty} {/add(button, new AbsoluteData(10, 20))/}");
  }

  public void test_deleteLayout() throws Exception {
    LayoutContainerInfo container =
        parseJavaInfo(
            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new AbsoluteLayout());",
            "    {",
            "      Button button = new Button();",
            "      add(button, new AbsoluteData(10, 20));",
            "      button.setSize('200px', '80px');",
            "    }",
            "  }",
            "}");
    assertHierarchy(
        "{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {/setLayout(new AbsoluteLayout())/ /add(button, new AbsoluteData(10, 20))/}",
        "  {new: com.extjs.gxt.ui.client.widget.layout.AbsoluteLayout} {empty} {/setLayout(new AbsoluteLayout())/}",
        "  {new: com.extjs.gxt.ui.client.widget.button.Button} {local-unique: button} {/new Button()/ /add(button, new AbsoluteData(10, 20))/ /button.setSize('200px', '80px')/}",
        "    {new: com.extjs.gxt.ui.client.widget.layout.AbsoluteData} {empty} {/add(button, new AbsoluteData(10, 20))/}");
    container.refresh();
    // delete AbsoluteLayout
    container.getLayout().delete();
    assertEditor(
        "public class Test extends LayoutContainer {",
        "  public Test() {",
        "    {",
        "      Button button = new Button();",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.LayoutContainerInfo

  /**
   * {@link AbsoluteLayoutInfo} is not flow container.
   */
  public void test_flowContainer() throws Exception {
    LayoutContainerInfo container =
        parseJavaInfo(
            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new AbsoluteLayout());",
            "  }",
            "}");
    AbsoluteLayoutInfo layout = (AbsoluteLayoutInfo) container.getLayout();
    // no "canvas"
    {
      List<FlowContainer> flowContainers = new FlowContainerFactory(layout, true).get();
      assertThat(flowContainers).isEmpty();
    }
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.