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

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


            "  }",
            "}"});
    canvas.refresh();
    MenuBarInfo menuBar = canvas.getChildren(MenuBarInfo.class).get(0);
    // create new Menu
    MenuInfo newMenu = createJavaInfo("com.smartgwt.client.widgets.menu.Menu");
    menuBar.command_CREATE(newMenu, menuBar.getMenus().get(0));
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    Canvas canvas = new Canvas();",
View Full Code Here


    MenuBarInfo menuBar = canvas.getChildren(MenuBarInfo.class).get(0);
    //
    MenuBarInfo newMenuBar = createJavaInfo("com.smartgwt.client.widgets.menu.MenuBar");
    canvas.command_absolute_CREATE(newMenuBar, null);
    //
    MenuInfo menu = menuBar.getMenus().get(1);
    newMenuBar.command_MOVE(menu, null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    Canvas canvas = new Canvas();",
View Full Code Here

            "    canvas.setContextMenu(menu);",
            "    canvas.draw();",
            "  }",
            "}"});
    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.setContextMenu(menu);",
            "    canvas.draw();",
            "  }",
            "}"});
    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));
View Full Code Here

            "    canvas.setContextMenu(menu);",
            "    canvas.draw();",
            "  }",
            "}"});
    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);
View Full Code Here

            "  }",
            "}"});
    canvas.refresh();
    MenuButtonInfo menuButton = canvas.getChildren(MenuButtonInfo.class).get(0);
    //
    MenuInfo menu = menuButton.getMenu();
    assertThat(menu).isNotNull();
    assertThat(menu.getItems().size()).isEqualTo(1);
  }
View Full Code Here

TOP

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

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.