Examples of FlowContainerFactory


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

            "}");
    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 {",
View Full Code Here

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

      List<SimpleContainer> containers = new SimpleContainerFactory(layout, false).get();
      assertThat(containers).isEmpty();
    }
    // has FlowContainer
    {
      List<FlowContainer> containers = new FlowContainerFactory(layout, true).get();
      assertThat(containers).hasSize(1);
    }
  }
View Full Code Here

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

            "  }",
            "}");
    panel.refresh();
    AccordionLayoutInfo layout = (AccordionLayoutInfo) panel.getLayout();
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    PanelInfo newPanel = createJavaInfo("com.gwtext.client.widgets.Panel", null);
    flowContainer.command_CREATE(newPanel, null);
    assertEditor(
        "public class Test extends Panel {",
        "  public Test() {",
View Full Code Here

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

            "  }",
            "}");
    panel.refresh();
    AccordionLayoutInfo layout = (AccordionLayoutInfo) panel.getLayout();
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    PanelInfo newPanel = createJavaInfo("com.gwtext.client.widgets.Panel", "empty");
    flowContainer.command_CREATE(newPanel, null);
    assertEditor(
        "public class Test extends Panel {",
        "  public Test() {",
View Full Code Here

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

            "}");
    layout.refresh();
    // prepare FlowContainer
    FlowContainer flowContainer;
    {
      List<FlowContainer> flowContainers = new FlowContainerFactory(layout, true).get();
      assertThat(flowContainers).hasSize(1);
      flowContainer = flowContainers.get(0);
      assertFalse(flowContainer.isHorizontal());
    }
    // do create
View Full Code Here

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

            "}");
    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 VLayout {",
View Full Code Here

Examples of org.eclipse.wb.internal.core.xml.model.generic.FlowContainerFactory

   * <code>Widget</code>.
   */
  protected static void assertHasWidgetFlowContainer(XmlObjectInfo panel,
      boolean forCanvas,
      boolean expected) throws Exception {
    FlowContainerFactory factory = new FlowContainerFactory(panel, forCanvas);
    List<FlowContainer> flowContainers = factory.get();
    // check each factory
    WidgetInfo button = createButton();
    boolean valid = false;
    for (FlowContainer flowContainer : flowContainers) {
      valid |= flowContainer.validateComponent(button);
View Full Code Here

Examples of org.eclipse.wb.internal.core.xml.model.generic.FlowContainerFactory

      flowContainer.validateComponent(newButton);
    }
  }

  private static FlowContainer getFlowContainer(ComplexPanelInfo panel, boolean forCanvas) {
    return new FlowContainerFactory(panel, forCanvas).get().get(0);
  }
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.