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

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.ComplexPanelInfo


        "      Box box = new Box();",
        "      add(box);",
        "    }",
        "  }",
        "}");
    ComplexPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo box = getJavaInfoByName("box");
    //
    canvas.sideMode().beginMove(box);
    canvas.dragTo(panel, 20, 30).endDrag();
    assertEditor(
View Full Code Here


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

    composite.refresh();
    assertNoErrors(composite);
  }

  public void test_flowContainers() throws Exception {
    ComplexPanelInfo panel =
        parseJavaInfo(
            "// filler filler filler filler filler",
            "public class Test extends HTMLPanel {",
            "  public Test() {",
            "    super('<div/>');",
View Full Code Here

        "  }",
        "}");
  }

  public void test_canvas_PASTE_it() throws Exception {
    ComplexPanelInfo flowPanel =
        openJavaInfo(
            "// filler filler filler filler filler",
            "public class Test extends FlowPanel {",
            "  public Test() {",
            "    {",
View Full Code Here

    WidgetInfo button = getJavaInfoByName("button");
    assertNotNull(PropertyUtils.getByPath(button, "Cell"));
  }

  public void test_flowContainers() throws Exception {
    ComplexPanelInfo panel =
        parseJavaInfo(
            "// filler filler filler filler filler",
            "public class Test extends VerticalPanel {",
            "  public Test() {",
            "  }",
View Full Code Here

        "  }",
        "}");
  }

  public void test_canvas_PASTE_it() throws Exception {
    ComplexPanelInfo flowPanel =
        openJavaInfo(
            "// filler filler filler filler filler",
            "public class Test extends FlowPanel {",
            "  public Test() {",
            "    {",
View Full Code Here

  /**
   * In theory we should consider decorations, but if there was no refresh() yet, we don't know
   * decorations, so we just apply size as is.
   */
  public void test_considerDecorations_whenSizeDuringCreate() throws Exception {
    final ComplexPanelInfo frame =
        parseJavaInfo(
            "public class Test implements EntryPoint {",
            "  public void onModuleLoad() {",
            "    RootPanel rootPanel = RootPanel.get();",
            "  }",
View Full Code Here

   * Test that zero size does not cause exception.
   * <p>
   * http://fogbugz.instantiations.com/fogbugz/default.asp?47814
   */
  public void test_zeroSize() throws Exception {
    ComplexPanelInfo panel =
        parseJavaInfo(
            "// filler filler filler filler filler",
            "// filler filler filler filler filler",
            "public class Test extends FlowPanel {",
            "  public Test() {",
            "  }",
            "}");
    refresh();
    assertNoErrors(panel);
    // initially 450x300
    {
      Image image = panel.getImage();
      assertEquals(450, image.getBounds().width);
      assertEquals(300, image.getBounds().height);
    }
    // set -100x-100 size, no exception
    {
      panel.getTopBoundsSupport().setSize(-100, -100);
      refresh();
      // however 1x1 image generated
      Image image = panel.getImage();
      assertEquals(1, image.getBounds().width);
      assertEquals(1, image.getBounds().height);
    }
  }
View Full Code Here

        "  }",
        "}");
  }

  public void test_createIntoNewCellTable() throws Exception {
    ComplexPanelInfo panel =
        parseJavaInfo(
            "// filler filler filler filler filler",
            "public class Test extends FlowPanel {",
            "  public Test() {",
            "  }",
View Full Code Here

        "    FlowPanel flowPanel = new FlowPanel();",
        "    flowPanel.setSize('500px', '200px');",
        "  }",
        "}");
    refresh();
    ComplexPanelInfo flowPanel = getJavaInfoByName("flowPanel");
    // has size 500x200
    {
      Image image = flowPanel.getImage();
      assertEquals(500, image.getBounds().width);
      assertEquals(200, image.getBounds().height);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.widgets.panels.ComplexPanelInfo

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.