Package com.google.gdt.eclipse.designer.smart.model.menu

Examples of com.google.gdt.eclipse.designer.smart.model.menu.MenuItemInfo


    canvas.refresh();
    MenuInfo menu = canvas.getChildren(MenuInfo.class).get(0);
    //
    List<MenuItemInfo> items = menu.getItems();
    assertThat(items.size()).isEqualTo(1);
    MenuItemInfo item = items.get(0);
    assertThat(item.getSubmenu()).isNull();
  }
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(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    Canvas canvas = new Canvas();",
        "    Menu menu = new Menu();",
View Full Code Here

    canvas.refresh();
    MenuInfo menu = canvas.getChildren(MenuInfo.class).get(0);
    //
    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(
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.smart.model.menu.MenuItemInfo

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.