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

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


  //
  // Canvas
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_canvas_CREATE() throws Exception {
    AbsolutePanelInfo panel =
        openJavaInfo(
            "// filler filler filler filler filler",
            "public class Test extends AbsolutePanel {",
            "  public Test() {",
            "  }",
View Full Code Here


        "  }",
        "}");
  }

  public void test_canvas_PASTE() throws Exception {
    AbsolutePanelInfo panel =
        openJavaInfo(
            "public class Test extends AbsolutePanel {",
            "  public Test() {",
            "    {",
            "      Box existing = new Box();",
View Full Code Here

        "  }",
        "}");
  }

  public void test_canvas_MOVE() throws Exception {
    AbsolutePanelInfo panel =
        openJavaInfo(
            "public class Test extends AbsolutePanel {",
            "  public Test() {",
            "    Box box = new Box();",
            "    add(box, 5, 5);",
View Full Code Here

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

        "  }",
        "}");
  }

  public void test_tree_PASTE() throws Exception {
    AbsolutePanelInfo panel =
        openJavaInfo(
            "public class Test extends AbsolutePanel {",
            "  public Test() {",
            "    {",
            "      Box existing = new Box();",
View Full Code Here

        "      myPanel.myAdd(button);",
        "    }",
        "  }",
        "}");
    refresh();
    AbsolutePanelInfo myPanel = getJavaInfoByName("myPanel");
    WidgetInfo button = getJavaInfoByName("button");
    // set new location
    myPanel.command_BOUNDS(button, new Point(1, 2), null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    MyAbsolutePanel myPanel = new MyAbsolutePanel();",
View Full Code Here

        "    }",
        "  }",
        "}");
    refresh();
    WidgetInfo button = getJavaInfoByName("button");
    AbsolutePanelInfo panel = getJavaInfoByName("panel");
    // do ADD
    panel.command_MOVE2(button, null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    {",
View Full Code Here

            "    }",
            "  }",
            "}");
    refresh();
    WidgetInfo button = getJavaInfoByName("button");
    AbsolutePanelInfo panel = getJavaInfoByName("panel");
    // do ADD
    frame.command_MOVE2(button, null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

            "  }",
            "}");
    refresh();
    // do copy/paste
    {
      AbsolutePanelInfo panel = getJavaInfoByName("panel");
      doCopyPaste(panel, new PasteProcedure<WidgetInfo>() {
        public void run(WidgetInfo copy) throws Exception {
          flowContainer_CREATE(frame, copy, null);
        }
      });
View Full Code Here

            "      rootPanel.add(button_2, 0, 100);",
            "    }",
            "  }",
            "}");
    refresh();
    AbsolutePanelInfo innerPanel = getJavaInfoByName("innerPanel");
    WidgetInfo button_1 = getJavaInfoByName("button_1");
    WidgetInfo button_2 = getJavaInfoByName("button_2");
    // perform alignment
    setupSelectionActions(frame);
    setupSelectionActions(innerPanel);
View Full Code Here

TOP

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

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.