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

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


  public void test_canvas_CREATE_CENTER() throws Exception {
    check_canvas_CREATE(0.5, 0.5, "CENTER");
  }

  private void check_canvas_CREATE(double x, double y, String direction) throws Exception {
    DockPanelInfo panel =
        openJavaInfo(
            "// filler filler filler filler filler",
            "public class Test extends DockPanel {",
            "  public Test() {",
            "  }",
View Full Code Here


  /**
   * Only one CENTER allowed.
   */
  public void test_canvas_CREATE_hasCENTER() throws Exception {
    DockPanelInfo panel =
        openJavaInfo(
            "// filler filler filler filler filler",
            "public class Test extends DockPanel {",
            "  public Test() {",
            "    {",
View Full Code Here

  //
  // Canvas.PASTE
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_canvas_PASTE_onIt() throws Exception {
    DockPanelInfo panel =
        openJavaInfo(
            "// filler filler filler filler filler",
            "public class Test extends DockPanel {",
            "  public Test() {",
            "    {",
View Full Code Here

            "      }",
            "    }",
            "  }",
            "}");
    // do copy/paste
    DockPanelInfo panel = getJavaInfoByName("panel");
    doCopyPaste(panel);
    canvas.moveTo(flowPanel, 0.9, 0.1).click();
    assertEditor(
        "// filler filler filler filler filler",
        "public class Test extends FlowPanel {",
View Full Code Here

  //
  // Canvas
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_canvas_MOVE() throws Exception {
    DockPanelInfo panel =
        openJavaInfo(
            "// filler filler filler filler filler",
            "public class Test extends DockPanel {",
            "  public Test() {",
            "    {",
View Full Code Here

        "      Button button = new Button();",
        "      add(button);",
        "    }",
        "  }",
        "}");
    DockPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo button = getJavaInfoByName("button");
    //
    canvas.beginDrag(button).dragTo(panel, 0.9, 0.5).endDrag();
    assertEditor(
        "// filler filler filler filler filler",
View Full Code Here

  //
  // Tree
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_tree_CREATE() throws Exception {
    DockPanelInfo panel =
        openJavaInfo(
            "// filler filler filler filler filler",
            "public class Test extends DockPanel {",
            "  public Test() {",
            "  }",
View Full Code Here

        "      Button button = new Button();",
        "      add(button);",
        "    }",
        "  }",
        "}");
    DockPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo button = getJavaInfoByName("button");
    //
    tree.startDrag(button).dragOn(panel).endDrag();
    assertEditor(
        "// filler filler filler filler filler",
View Full Code Here

            "    DockPanel panel = new DockPanel();",
            "    rootPanel.add(panel);",
            "  }",
            "}");
    frame.refresh();
    DockPanelInfo panel = (DockPanelInfo) frame.getChildrenWidgets().get(0);
    assertThat(panel.getBounds().width).isGreaterThan(140);
    assertThat(panel.getBounds().height).isGreaterThan(20);
  }
View Full Code Here

            "    DockPanel panel = new DockPanel();",
            "    rootPanel.add(panel);",
            "  }",
            "}");
    frame.refresh();
    DockPanelInfo panel = (DockPanelInfo) frame.getChildrenWidgets().get(0);
    assertNotNull(panel.getPropertyByTitle("horizontalAlignment"));
    assertNotNull(panel.getPropertyByTitle("verticalAlignment"));
  }
View Full Code Here

TOP

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

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.