Examples of command_MOVE()


Examples of com.google.gdt.eclipse.designer.model.widgets.panels.HorizontalSplitPanelInfo.command_MOVE()

    refresh();
    HorizontalSplitPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo leftButton = getJavaInfoByName("leftButton");
    WidgetInfo rightButton = getJavaInfoByName("rightButton");
    //
    panel.command_MOVE(rightButton, leftButton);
    assertEditor(
        "public class Test extends FlowPanel {",
        "  public Test() {",
        "    HorizontalSplitPanel panel = new HorizontalSplitPanel();",
        "    add(panel);",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.HorizontalSplitPanelInfo.command_MOVE()

    // initial state
    WidgetInfo button = frame.getChildrenWidgets().get(1);
    assertNull(panel.getLeftWidget());
    assertNull(panel.getRightWidget());
    // do move
    panel.command_MOVE(button, "right");
    assertEditor(
        "public class Test extends FlowPanel {",
        "  public Test() {",
        "    HorizontalSplitPanel panel = new HorizontalSplitPanel();",
        "    add(panel);",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.grid.HTMLTableInfo.command_MOVE()

    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    assertThat(panel.getColumns()).hasSize(3);
    assertThat(panel.getRows()).hasSize(2);
    WidgetInfo button_2 = panel.getChildrenWidgets().get(1);
    // do MOVE
    panel.command_MOVE(button_2, 0, false, 0, false);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    Grid panel = new Grid(1, 2);",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.grid.HTMLTableInfo.command_MOVE()

    assertEquals("2 2 [2, 1] {(0,0)=(1,1) (1,0)=(1,1) (0,1)=(2,1)}", panel.getStatus().toString());
    // do MOVE
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
        WidgetInfo button_2 = panel.getChildrenWidgets().get(1);
        panel.command_MOVE(button_2, 0, false, 0, false);
      }
    });
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.grid.HTMLTableInfo.command_MOVE()

    assertEquals("2 1 [2] {(0,0)=(1,1) (1,0)=(1,1)}", panel.getStatus().toString());
    // do MOVE
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
        WidgetInfo button_2 = frame.getChildrenWidgets().get(1);
        panel.command_MOVE(button_2, 0, false, 0, false);
      }
    });
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

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

    //
    TabSetInfo tabSet = (TabSetInfo) children.get(0);
    assertThat(tabSet.getTabs().size()).isEqualTo(1);
    CanvasInfo label = children.get(1);
    // add label to TabSet
    tabSet.command_MOVE(label, null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    Canvas canvas = new Canvas();",
        "    TabSet tabSet = new TabSet();",
View Full Code Here

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

        "    canvas.addChild(tabSet);",
        "    canvas.draw();",
        "  }",
        "}");
    // move label to first position
    tabSet.command_MOVE(label, tabSet.getTabs().get(0));
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    Canvas canvas = new Canvas();",
        "    TabSet tabSet = new TabSet();",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.smart.model.form.DynamicFormInfo.command_MOVE()

    //
    List<FormItemInfo> fields = form.getItems();
    FormItemInfo textField = fields.get(0);
    FormItemInfo dateField = fields.get(1);
    // move field
    form.command_MOVE(dateField, textField);
    //
    assertEditor(
        "public class Test extends DynamicForm {",
        "  public Test() {",
        "    setFields(new FormItem[] { new DateItem('newDateItem'), new TextItem('newTextItem')});",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.smart.model.form.DynamicFormInfo.command_MOVE()

    assertThat(items.size()).isEqualTo(2);
    // create new form
    DynamicFormInfo newForm = createJavaInfo("com.smartgwt.client.widgets.form.DynamicForm");
    canvas.command_absolute_CREATE(newForm, null);
    // move field
    newForm.command_MOVE(items.get(0), null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    Canvas canvas = new Canvas();",
        "    DynamicForm form = new DynamicForm();",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.smart.model.form.DynamicFormInfo.command_MOVE()

    //
    List<FormItemInfo> fields = form.getItems();
    CanvasItemInfo labelItem = (CanvasItemInfo) fields.get(0);
    CanvasItemInfo buttonItem = (CanvasItemInfo) fields.get(1);
    // move canvas
    form.command_MOVE(buttonItem.getCanvas(), labelItem);
    //
    assertEditor(
        "public class Test extends DynamicForm {",
        "  public Test() {",
        "    CanvasItem canvasItem_1 = new CanvasItem('newCanvasItem_1');",
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.