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

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


        NonVisualBeanContainerInfo.get(calendar).getChildren(DataSourceInfo.class).get(0);
    // create new DataSourceField
    DataSourceFieldInfo dataSourceField =
        createJavaInfo("com.smartgwt.client.data.fields.DataSourceBooleanField");
    {
      FlowContainer flowContainer = new FlowContainerFactory(dataSource, false).get().get(0);
      assertTrue(flowContainer.validateComponent(dataSourceField));
      flowContainer.command_CREATE(dataSourceField, null);
    }
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here


    assertThat(canvas.getChildren(CalendarInfo.class).size()).isEqualTo(1);
    // create new DataSourceField
    DataSourceFieldInfo dataSourceField =
        createJavaInfo("com.smartgwt.client.data.fields.DataSourceBooleanField");
    {
      FlowContainer flowContainer = new FlowContainerFactory(dataSource, false).get().get(0);
      assertTrue(flowContainer.validateComponent(dataSourceField));
      flowContainer.command_CREATE(dataSourceField, null);
    }
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here

    canvas.refresh();
    MenuInfo menu = canvas.getChildren(MenuInfo.class).get(0);
    // create new MenuItem
    MenuItemInfo newItem = createJavaInfo("com.smartgwt.client.widgets.menu.MenuItem");
    {
      FlowContainer flowContainer = new FlowContainerFactory(menu, false).get().get(0);
      assertTrue(flowContainer.validateComponent(newItem));
      flowContainer.command_CREATE(newItem, null);
    }
    assertThat(newItem.getMenu()).isSameAs(menu);
    assertEditor(
View Full Code Here

    List<MenuItemInfo> items = menu.getItems();
    assertThat(items.size()).isEqualTo(2);
    MenuItemInfo item = items.get(0);
    MenuItemInfo separator = items.get(1);
    {
      FlowContainer flowContainer = new FlowContainerFactory(menu, false).get().get(0);
      flowContainer.command_MOVE(separator, item);
    }
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

            "    setLayout(new FormLayout());",
            "  }",
            "}");
    container.refresh();
    FormLayoutInfo layout = (FormLayoutInfo) container.getLayout();
    FlowContainer flowContainer = new FlowContainerFactory(layout, 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

    assertTrue(flowContainer.validateComponent(child));
    flowContainer.command_MOVE(child, nextItem);
  }

  private static FlowContainer getFlowContainer(TreeItemInfo parent) {
    List<FlowContainer> containers = new FlowContainerFactory(parent, true).get();
    assertThat(containers).hasSize(1);
    return containers.get(0);
  }
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

  ////////////////////////////////////////////////////////////////////////////
  /**
   * @return some {@link FlowContainer} for given {@link JavaInfo}.
   */
  private static FlowContainer getFlowContainer(JavaInfo container) {
    List<FlowContainer> containers = new FlowContainerFactory(container, false).get();
    assertThat(containers).isNotEmpty();
    return containers.get(0);
  }
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));
View Full Code Here

            "}");
    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
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.