Examples of TabPanelInfo


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

  //
  // CREATE
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_CREATE_canvas_empty() throws Exception {
    TabPanelInfo panel =
        openJavaInfo(
            "// filler filler filler filler filler",
            "public class Test extends TabPanel {",
            "  public Test() {",
            "  }",
View Full Code Here

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

        "  }",
        "}");
  }

  public void test_CREATE_canvas_before() throws Exception {
    TabPanelInfo panel =
        openJavaInfo(
            "public class Test extends TabPanel {",
            "  public Test() {",
            "    {",
            "      Button button = new Button('Existing');",
View Full Code Here

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

        "  }",
        "}");
  }

  public void test_CREATE_canvas_after() throws Exception {
    TabPanelInfo panel =
        openJavaInfo(
            "public class Test extends TabPanel {",
            "  public Test() {",
            "    {",
            "      Button button = new Button('Existing');",
View Full Code Here

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

        "  }",
        "}");
  }

  public void test_CREATE_tree() throws Exception {
    TabPanelInfo panel =
        openJavaInfo(
            "// filler filler filler filler filler",
            "public class Test extends TabPanel {",
            "  public Test() {",
            "  }",
View Full Code Here

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

  //
  // PASTE
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_PASTE() throws Exception {
    TabPanelInfo panel =
        openJavaInfo(
            "public class Test extends TabPanel {",
            "  public Test() {",
            "    {",
            "      Button existing = new Button();",
View Full Code Here

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

  //
  // MOVE
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_MOVE_widget() throws Exception {
    TabPanelInfo panel =
        openJavaInfo(
            "public class Test extends TabPanel {",
            "  public Test() {",
            "    {",
            "      Button button_1 = new Button();",
View Full Code Here

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

        "  }",
        "}");
  }

  public void test_MOVE_header_before() throws Exception {
    TabPanelInfo panel =
        openJavaInfo(
            "public class Test extends TabPanel {",
            "  public Test() {",
            "    {",
            "      Button button_1 = new Button();",
            "      add(button_1, 'A', false);",
            "    }",
            "    {",
            "      Button button_2 = new Button();",
            "      add(button_2, 'B', false);",
            "    }",
            "  }",
            "}");
    // drag header of "button_2"
    {
      WidgetHandle widgetHandle = panel.getWidgetHandles().get(1);
      Point handleCenter = widgetHandle.getBounds().getCenter();
      canvas.moveTo(panel, handleCenter.x, handleCenter.y);
      canvas.beginDrag().dragTo(panel, 5, 0).endDrag();
    }
    assertEditor(
View Full Code Here

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

        "  }",
        "}");
  }

  public void test_MOVE_header_after() throws Exception {
    TabPanelInfo panel =
        openJavaInfo(
            "public class Test extends TabPanel {",
            "  public Test() {",
            "    {",
            "      Button button_1 = new Button();",
            "      add(button_1, 'A', false);",
            "    }",
            "    {",
            "      Button button_2 = new Button();",
            "      add(button_2, 'B', false);",
            "    }",
            "    {",
            "      Button button_3 = new Button();",
            "      add(button_3, 'C', false);",
            "    }",
            "  }",
            "}");
    // drag header of "button_1"
    {
      WidgetHandle widgetHandle = panel.getWidgetHandles().get(0);
      Point handleCenter = widgetHandle.getBounds().getCenter();
      canvas.moveTo(panel, handleCenter.x, handleCenter.y);
      canvas.beginDrag().dragTo(panel, -5, 0).endDrag();
    }
    assertEditor(
View Full Code Here

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

        "      Button button = new Button('button');",
        "      add(button);",
        "    }",
        "  }",
        "}");
    TabPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo button = getJavaInfoByName("button");
    //
    canvas.beginDrag(button).dragTo(panel, 0.5, 0.5).endDrag();
    assertEditor(
        "public class Test extends FlowPanel {",
View Full Code Here

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

  //
  // Handle
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_canvas_doubleClickHandle() throws Exception {
    TabPanelInfo panel =
        openJavaInfo(
            "public class Test extends TabPanel {",
            "  public Test() {",
            "    {",
            "      Button button_1 = new Button();",
            "      add(button_1, 'A', false);",
            "    }",
            "    {",
            "      Button button_2 = new Button();",
            "      add(button_2, 'A', false);",
            "    }",
            "  }",
            "}");
    WidgetInfo button_1 = getJavaInfoByName("button_1");
    WidgetInfo button_2 = getJavaInfoByName("button_2");
    // initially "button_1" is visible
    assertTrue(isVisible(button_1));
    assertFalse(isVisible(button_2));
    // double click handle of "button_1"
    {
      Rectangle bounds = panel.getWidgetHandles().get(1).getBounds();
      Point handleCenter = bounds.getCenter();
      canvas.moveTo(panel, handleCenter.x, handleCenter.y).doubleClick();
    }
    // now "button_2" is visible
    assertFalse(isVisible(button_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.