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

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


            "}");
    canvas.refresh();
    CanvasInfo button = getJavaInfoByName("button");
    LayoutInfo layout = getJavaInfoByName("vLayout");
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    flowContainer.command_MOVE(button, null);
    assertEditor(
        "public class Test extends Canvas {",
        "  public Test() {",
        "    {",
View Full Code Here


            "}");
    canvas.refresh();
    CanvasInfo button = getJavaInfoByName("button");
    LayoutInfo layout = getJavaInfoByName("vLayout");
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    flowContainer.command_MOVE(button, null);
    assertEditor(
        "public class Test extends Canvas {",
        "  public Test() {",
        "    {",
View Full Code Here

  /**
   * Adds given {@link ColumnInfo} as last.
   */
  private void addColumn(ColumnInfo column) throws Exception {
    List<FlowContainer> flowContainers = new FlowContainerFactory(this, false).get();
    for (FlowContainer flowContainer : flowContainers) {
      if (flowContainer.validateComponent(column)) {
        flowContainer.command_CREATE(column, null);
        break;
      }
View Full Code Here

    command_MOVE2(this, widget, nextWidget);
  }

  static void command_CREATE2(WidgetInfo container, WidgetInfo widget, WidgetInfo nextWidget)
      throws Exception {
    List<FlowContainer> flowContainers = new FlowContainerFactory(container, false).get();
    for (FlowContainer flowContainer : flowContainers) {
      if (flowContainer.validateComponent(widget)) {
        flowContainer.command_CREATE(widget, nextWidget);
        ExecutionUtils.refresh(container);
        break;
View Full Code Here

    }
  }

  static void command_MOVE2(WidgetInfo container, WidgetInfo widget, WidgetInfo nextWidget)
      throws Exception {
    List<FlowContainer> flowContainers = new FlowContainerFactory(container, false).get();
    for (FlowContainer flowContainer : flowContainers) {
      if (flowContainer.validateComponent(widget)) {
        flowContainer.command_MOVE(widget, nextWidget);
        ExecutionUtils.refresh(container);
        break;
View Full Code Here

            "  }",
            "}");
    container.refresh();
    //
    MultiFieldInfo group = getJavaInfoByName("group");
    FlowContainer flowContainer = new FlowContainerFactory(group, true).get().get(0);
    // don't accept generic Component
    {
      ComponentInfo newComponent = createJavaInfo("com.extjs.gxt.ui.client.widget.button.Button");
      assertFalse(flowContainer.validateComponent(newComponent));
    }
View Full Code Here

            "    }",
            "  }",
            "}");
    container.refresh();
    MultiFieldInfo multiField = (MultiFieldInfo) container.getWidgets().get(0);
    FlowContainer flowContainer = new FlowContainerFactory(multiField, false).get().get(0);
    // add new LabelField
    FieldInfo newField = createJavaInfo("com.extjs.gxt.ui.client.widget.form.LabelField", "empty");
    assertTrue(flowContainer.validateComponent(newField));
    flowContainer.command_CREATE(newField, null);
    assertEditor(
View Full Code Here

            "    setLayout(new CardLayout());",
            "  }",
            "}");
    container.refresh();
    CardLayoutInfo layout = (CardLayoutInfo) container.getLayout();
    FlowContainer flowContainer = new FlowContainerFactory(layout, false).get().get(0);
    // add new Button
    ComponentInfo newButton = createButton();
    assertTrue(flowContainer.validateComponent(newButton));
    flowContainer.command_CREATE(newButton, null);
    assertEditor(
View Full Code Here

            "}");
    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(
        "public class Test extends LayoutContainer {",
        "  public Test() {",
        "    setLayout(new TableRowLayout());",
View Full Code Here

            "    setLayout(new AnchorLayout());",
            "  }",
            "}");
    container.refresh();
    AnchorLayoutInfo layout = (AnchorLayoutInfo) container.getLayout();
    FlowContainer flowContainer = new FlowContainerFactory(layout, false).get().get(0);
    // add new Button
    ComponentInfo newButton = createButton();
    assertTrue(flowContainer.validateComponent(newButton));
    flowContainer.command_CREATE(newButton, null);
    assertEditor(
View Full Code Here

TOP

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

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.