Package com.google.gdt.eclipse.designer.model.widgets

Examples of com.google.gdt.eclipse.designer.model.widgets.WidgetInfo


        "    Box box = new Box();",
        "    add(box, 150, 100);",
        "    box.setSize('100px', '50px');",
        "  }",
        "}");
    WidgetInfo box = getJavaInfoByName("box");
    //
    canvas.beginResize(box, IPositionConstants.WEST);
    canvas.dragOn(-25, 0).endDrag();
    assertEditor(
        "public class Test extends AbsolutePanel {",
View Full Code Here


        "    Box box = new Box();",
        "    add(box, 150, 100);",
        "    box.setSize('100px', '50px');",
        "  }",
        "}");
    WidgetInfo box = getJavaInfoByName("box");
    //
    canvas.beginResize(box, IPositionConstants.EAST);
    canvas.dragOn(25, 0).endDrag();
    assertEditor(
        "public class Test extends AbsolutePanel {",
View Full Code Here

        "    Box box = new Box();",
        "    add(box, 150, 100);",
        "    box.setSize('100px', '50px');",
        "  }",
        "}");
    WidgetInfo box = getJavaInfoByName("box");
    //
    canvas.beginResize(box, IPositionConstants.NORTH);
    canvas.dragOn(0, 25).endDrag();
    assertEditor(
        "public class Test extends AbsolutePanel {",
View Full Code Here

        "    Box box = new Box();",
        "    add(box, 150, 100);",
        "    box.setSize('100px', '50px');",
        "  }",
        "}");
    WidgetInfo box = getJavaInfoByName("box");
    //
    canvas.beginResize(box, IPositionConstants.SOUTH);
    canvas.dragOn(0, 25).endDrag();
    assertEditor(
        "public class Test extends AbsolutePanel {",
View Full Code Here

            "    }",
            "  }",
            "}");
    // do copy/paste
    {
      WidgetInfo existing = getJavaInfoByName("existing");
      doCopyPaste(existing);
    }
    tree.moveOn(panel).click();
    assertEditor(
        "public class Test extends AbsolutePanel {",
View Full Code Here

        "      Box box_2 = new Box();",
        "      add(box_2, 5, 100);",
        "    }",
        "  }",
        "}");
    WidgetInfo box_1 = getJavaInfoByName("box_1");
    WidgetInfo box_2 = getJavaInfoByName("box_2");
    //
    tree.startDrag(box_2).dragBefore(box_1).endDrag();
    assertEditor(
        "public class Test extends AbsolutePanel {",
        "  public Test() {",
View Full Code Here

        "      add(box);",
        "    }",
        "  }",
        "}");
    ComplexPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo box = getJavaInfoByName("box");
    //
    tree.startDrag(box).dragOn(panel).endDrag();
    assertEditor(
        "public class Test extends FlowPanel {",
        "  public Test() {",
View Full Code Here

        "    add(composite);",
        "  }",
        "}");
    refresh();
    assertNoErrors(m_lastParseInfo);
    WidgetInfo composite = getJavaInfoByName("composite");
    // assert that Button is in "composite"
    Object compositeElement = composite.getElement();
    String compositeString = compositeElement.toString();
    assertThat(compositeString).containsIgnoringCase("BUTTON");
  }
View Full Code Here

        "      }",
        "    }",
        "  }",
        "}");
    HorizontalSplitPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo existing = getJavaInfoByName("existing");
    //
    doCopyPaste(existing);
    canvas.moveTo(panel, 0.9, 0.5).click();
    assertEditor(
        "// filler filler filler filler filler",
View Full Code Here

        "      }",
        "    }",
        "  }",
        "}");
    HorizontalSplitPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo button = getJavaInfoByName("button");
    //
    canvas.beginDrag(button).dragTo(panel, 0.9, 0.5).endDrag();
    assertEditor(
        "// filler filler filler filler filler",
        "public class Test extends Composite {",
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.widgets.WidgetInfo

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.