Examples of command_MOVE()


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

            "  }",
            "}"});
    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

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

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

Examples of com.google.gdt.eclipse.designer.uibinder.model.util.UiChildSupport.Position.command_MOVE()

    refresh();
    WidgetInfo button_1 = getObjectByName("button_1");
    WidgetInfo button_2 = getObjectByName("button_2");
    // do move
    Position position = getPosition(container, "topbutton");
    position.command_MOVE(button_2, button_1);
    assertXML(
        "<ui:UiBinder>",
        "  <t:MyContainer>",
        "    <t:topbutton text='B'>",
        "      <g:Button wbp:name='button_2' text='2'/>",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.uibinder.model.util.UiChildSupport.Position.command_MOVE()

            "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    // do move
    Position position = getPosition(container, "bottomWidget");
    position.command_MOVE(button, null);
    assertXML(
        "<ui:UiBinder>",
        "  <t:MyContainer>",
        "    <t:bottomWidget>",
        "      <g:Button wbp:name='button'/>",
View Full Code Here

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

    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 {",
        "  public Test() {",
        "    {",
        "      Button button_2 = new Button();",
View Full Code Here

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

    canvas.refresh();
    CanvasInfo button = getJavaInfoByName("button");
    LayoutInfo layout = getJavaInfoByName("vLayout");
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    flowContainer.command_MOVE(button, null);
    assertEditor(
        "public class Test extends Canvas {",
        "  public Test() {",
        "    {",
        "      VLayout vLayout = new VLayout();",
View Full Code Here

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

    canvas.refresh();
    CanvasInfo button = getJavaInfoByName("button");
    LayoutInfo layout = getJavaInfoByName("vLayout");
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    flowContainer.command_MOVE(button, null);
    assertEditor(
        "public class Test extends Canvas {",
        "  public Test() {",
        "    {",
        "      VLayout vLayout = new VLayout();",
View Full Code Here

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

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

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

  private static void doTreeItem_MOVE(TreeItemInfo parent, TreeItemInfo child, TreeItemInfo nextItem)
      throws Exception {
    FlowContainer flowContainer = getFlowContainer(parent);
    assertTrue(flowContainer.validateComponent(child));
    flowContainer.command_MOVE(child, nextItem);
  }

  private static FlowContainer getFlowContainer(TreeItemInfo parent) {
    List<FlowContainer> containers = new FlowContainerFactory(parent, true).get();
    assertThat(containers).hasSize(1);
View Full Code Here

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

    WidgetInfo panel_1 = frame.getChildrenWidgets().get(0);
    WidgetInfo panel_2 = frame.getChildrenWidgets().get(1);
    WidgetInfo button = panel_1.getChildren(WidgetInfo.class).get(0);
    // do ADD
    FlowContainer flowContainer_2 = getFlowContainer(panel_2);
    flowContainer_2.command_MOVE(button, null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    {",
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.