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

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


            "    canvas.addChild(menuBar);",
            "    canvas.draw();",
            "  }",
            "}"});
    canvas.refresh();
    MenuBarInfo menuBar = canvas.getChildren(MenuBarInfo.class).get(0);
    //
    assertThat(menuBar.getMenusArrayInfo()).isNotNull();
    List<MenuInfo> menus = menuBar.getMenus();
    assertThat(menus.size()).isEqualTo(1);
    assertThat(menus.get(0).getItems().size()).isEqualTo(1);
  }
View Full Code Here


            "    canvas.addChild(menuBar);",
            "    canvas.draw();",
            "  }",
            "}"});
    canvas.refresh();
    MenuBarInfo menuBar = canvas.getChildren(MenuBarInfo.class).get(0);
    //
    assertThat(menuBar.getMenusArrayInfo()).isNotNull();
    List<MenuInfo> menus = menuBar.getMenus();
    assertThat(menus).isEmpty();
  }
View Full Code Here

            "    canvas.draw();",
            "  }",
            "}"});
    canvas.refresh();
    //
    MenuBarInfo menuBar = createJavaInfo("com.smartgwt.client.widgets.menu.MenuBar");
    // check "live" image
    assertThat(menuBar.getImage()).isNotNull();
    // do create
    canvas.command_absolute_CREATE(menuBar, null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

            "    canvas.addChild(menuBar);",
            "    canvas.draw();",
            "  }",
            "}"});
    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();",
        "    MenuBar menuBar = new MenuBar();",
View Full Code Here

            "    canvas.addChild(menuBar);",
            "    canvas.draw();",
            "  }",
            "}"});
    canvas.refresh();
    MenuBarInfo menuBar = canvas.getChildren(MenuBarInfo.class).get(0);
    // move Menu
    menuBar.command_MOVE(menuBar.getMenus().get(0), null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    Canvas canvas = new Canvas();",
        "    MenuBar menuBar = new MenuBar();",
View Full Code Here

            "    canvas.addChild(menuBar);",
            "    canvas.draw();",
            "  }",
            "}"});
    canvas.refresh();
    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();",
        "    MenuBar menuBar = new MenuBar();",
View Full Code Here

TOP

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

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.