Package org.eclipse.wb.internal.core.model.generic

Examples of org.eclipse.wb.internal.core.model.generic.FlowContainer


        "  }",
        "}");
  }

  private static void doTreeItem_CREATE(TreeItemInfo parent, TreeItemInfo child) throws Exception {
    FlowContainer flowContainer = getFlowContainer(parent);
    assertTrue(flowContainer.validateComponent(child));
    flowContainer.command_CREATE(child, null);
  }
View Full Code Here


    flowContainer.command_CREATE(child, null);
  }

  private static void doTreeItem_MOVE(TreeItemInfo parent, TreeItemInfo child, TreeItemInfo nextItem)
      throws Exception {
    FlowContainer flowContainer = getFlowContainer(parent);
    assertTrue(flowContainer.validateComponent(child));
    flowContainer.command_MOVE(child, nextItem);
  }
View Full Code Here

            "  }",
            "}");
    panel.refresh();
    //
    ComponentInfo newButton = createButton();
    FlowContainer flowContainer = new FlowContainerFactory(panel, true).get().get(0);
    flowContainer.command_CREATE(newButton, null);
    assertEditor(
        "// filler filler filler",
        "public class Test extends HorizontalPanel {",
        "  public Test() {",
        "    {",
View Full Code Here

            "  }",
            "}");
    frame.refresh();
    WidgetInfo myPanel = frame.getChildrenWidgets().get(0);
    // prepare FlowContainer
    FlowContainer flowContainer = getFlowContainer(myPanel);
    assertTrue(flowContainer.isHorizontal());
    // do CREATE
    WidgetInfo newButton = createButton();
    flowContainer.command_CREATE(newButton, null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    MyPanel myPanel = new MyPanel();",
View Full Code Here

    frame.refresh();
    WidgetInfo panel_1 = frame.getChildrenWidgets().get(0);
    WidgetInfo panel_2 = frame.getChildrenWidgets().get(1);
    WidgetInfo button = panel_1.getChildren(WidgetInfo.class).get(0);
    // do ADD
    FlowContainer flowContainer_2 = getFlowContainer(panel_2);
    flowContainer_2.command_MOVE(button, null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    {",
View Full Code Here

    //
    PanelInfo panel = (PanelInfo) frame.getChildrenWidgets().get(0);
    assertEquals(300, panel.getBounds().width);
    assertEquals(200, panel.getBounds().height);
    // check FlowContainer
    FlowContainer flowContainer = getFlowContainer(panel);
    assertTrue(flowContainer.isHorizontal());
  }
View Full Code Here

    //
    PanelInfo panel = (PanelInfo) frame.getChildrenWidgets().get(0);
    assertEquals(300, panel.getBounds().width);
    assertEquals(200, panel.getBounds().height);
    // check FlowContainer
    FlowContainer flowContainer = getFlowContainer(panel);
    assertFalse(flowContainer.isHorizontal());
  }
View Full Code Here

            "}");
    rootPanel.refresh();
    SectionStackInfo stack = (SectionStackInfo) rootPanel.getChildrenWidgets().get(0);
    assertThat(stack.getChildrenJava()).isEmpty();
    // create new Section
    FlowContainer flowContainer = new FlowContainerFactory(stack, true).get().get(0);
    {
      assertFalse(flowContainer.isHorizontal());
    }
    JavaInfo newSection = createJavaInfo("com.smartgwt.client.widgets.layout.SectionStackSection");
    assertTrue(flowContainer.validateComponent(newSection));
    flowContainer.command_CREATE(newSection, null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    SectionStack stack = new SectionStack();",
View Full Code Here

            "  public Test() {",
            "  }",
            "}");
    layout.refresh();
    // prepare FlowContainer
    FlowContainer flowContainer;
    {
      List<FlowContainer> flowContainers = new FlowContainerFactory(layout, true).get();
      assertThat(flowContainers).hasSize(1);
      flowContainer = flowContainers.get(0);
      assertTrue(flowContainer.isHorizontal());
    }
    // do create
    WidgetInfo newButton = createButton();
    assertTrue(flowContainer.validateComponent(newButton));
    flowContainer.command_CREATE(newButton, null);
    assertEditor(
        "// filler filler filler",
        "public class Test extends TileLayout {",
        "  public Test() {",
        "    {",
View Full Code Here

            "}");
    CanvasInfo button_1 = getJavaInfoByName("button_1");
    CanvasInfo button_2 = getJavaInfoByName("button_2");
    layout.refresh();
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    assertTrue(flowContainer.validateComponent(button_2));
    assertTrue(flowContainer.validateReference(button_1));
    flowContainer.command_MOVE(button_2, button_1);
    assertEditor(
        "public class Test extends TileLayout {",
        "  public Test() {",
        "    setRect(0, 0, 350, 200);",
        "    {",
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.model.generic.FlowContainer

Copyright © 2018 www.massapicom. 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.