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

Examples of org.eclipse.wb.internal.core.model.generic.FlowContainer.command_CREATE()


    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 {",
        "  public void onModuleLoad() {",
        "    Canvas canvas = new Canvas();",
View Full Code Here


    // 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(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

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

  }

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

  private static void doTreeItem_MOVE(TreeItemInfo parent, TreeItemInfo child, TreeItemInfo nextItem)
      throws Exception {
    FlowContainer flowContainer = getFlowContainer(parent);
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

    // 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

    {
      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

      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

    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() {",
        "    setLayout(new AccordionLayout());",
        "    {",
View Full Code Here

    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() {",
        "    setLayout(new AccordionLayout());",
        "    {",
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.