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

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


    CheckItemInfo item =
        (CheckItemInfo) JavaInfoUtils.createJavaInfo(
            getEditor(),
            "com.gwtext.client.widgets.menu.CheckItem",
            new ConstructorCreationSupport());
    new FlowContainerFactory(this, false).get().get(0).command_CREATE(item, null);
    item.getPropertyByTitle("text").setValue("Default");
    item.setCheckedProperty(true);
  }
View Full Code Here


    TabSetInfo tabSet = (TabSetInfo) rootPanel.getChildrenWidgets().get(0);
    assertThat(tabSet.getChildrenJava()).isEmpty();
    // create new Tab
    TabInfo newTab = createJavaInfo("com.smartgwt.client.widgets.tab.Tab");
    {
      FlowContainer flowContainer = new FlowContainerFactory(tabSet, false).get().get(0);
      assertTrue(flowContainer.validateComponent(newTab));
      flowContainer.command_CREATE(newTab, null);
    }
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here

    TabSetInfo tabSet = (TabSetInfo) rootPanel.getChildrenWidgets().get(0);
    assertThat(tabSet.getChildrenJava()).isEmpty();
    // create new Tab
    CanvasInfo newCanvas = createJavaInfo("com.smartgwt.client.widgets.Button");
    {
      FlowContainer flowContainer = new FlowContainerFactory(tabSet, false).get().get(1);
      assertTrue(flowContainer.validateComponent(newCanvas));
      flowContainer.command_CREATE(newCanvas, null);
    }
    assertEditor(
        "public class Test implements EntryPoint {",
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

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

    ToolStripInfo toolStrip = createDefaultModule();
    // create new MenuButton
    AbstractComponentInfo newButton =
        createJavaInfo("com.smartgwt.client.widgets.toolbar.ToolStripButton");
    {
      FlowContainer flowContainer = new FlowContainerFactory(toolStrip, false).get().get(0);
      assertTrue(flowContainer.validateComponent(newButton));
      flowContainer.command_CREATE(newButton, toolStrip.getChildrenReal().get(1));
    }
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here

    ToolStripInfo toolStrip = createDefaultModule();
    // create new MenuButton
    AbstractComponentInfo newMenuButton =
        createJavaInfo("com.smartgwt.client.widgets.toolbar.ToolStripMenuButton");
    {
      FlowContainer flowContainer = new FlowContainerFactory(toolStrip, false).get().get(1);
      assertTrue(flowContainer.validateComponent(newMenuButton));
      flowContainer.command_CREATE(newMenuButton, toolStrip.getChildrenReal().get(1));
    }
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here

  public void test_addCanvas() throws Exception {
    ToolStripInfo toolStrip = createDefaultModule();
    // create new Slider
    AbstractComponentInfo newCanvas = createJavaInfo("com.smartgwt.client.widgets.Slider");
    {
      FlowContainer flowContainer = new FlowContainerFactory(toolStrip, false).get().get(2);
      assertTrue(flowContainer.validateComponent(newCanvas));
      flowContainer.command_CREATE(newCanvas, toolStrip.getChildrenReal().get(1));
    }
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here

    ToolStripInfo toolStrip = createDefaultModule();
    // create new TextItem
    AbstractComponentInfo newFormItem =
        createJavaInfo("com.smartgwt.client.widgets.form.fields.TextItem");
    {
      FlowContainer flowContainer = new FlowContainerFactory(toolStrip, false).get().get(3);
      assertTrue(flowContainer.validateComponent(newFormItem));
      flowContainer.command_CREATE(newFormItem, toolStrip.getChildrenReal().get(1));
    }
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here

    ToolStripInfo toolStrip = createDefaultModule();
    // create new Spacer
    AbstractComponentInfo newSpacer =
        createJavaInfo("com.smartgwt.client.widgets.toolbar.ToolStripSpacer");
    {
      FlowContainer flowContainer = new FlowContainerFactory(toolStrip, false).get().get(4);
      assertTrue(flowContainer.validateComponent(newSpacer));
      flowContainer.command_CREATE(newSpacer, toolStrip.getChildrenReal().get(1));
    }
    assertEditor(
        "public class Test implements EntryPoint {",
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.