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

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


            "      }",
            "    }",
            "  }",
            "}");
    frame.refresh();
    StackPanelInfo panel = (StackPanelInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button_1 = panel.getChildrenWidgets().get(0);
    ComplexPanelInfo flowPanel = (ComplexPanelInfo) panel.getChildrenWidgets().get(1);
    WidgetInfo button_2 = flowPanel.getChildrenWidgets().get(0);
    assertTrue(isVisible(button_1));
    assertFalse(isVisible(flowPanel));
    // send "selecting" broadcast
    String expectedSource = m_lastEditor.getSource();
View Full Code Here


        "      }",
        "    }",
        "  }",
        "}");
    refresh();
    StackPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo button_1 = getJavaInfoByName("button_1");
    assertTrue(isVisible(button_1));
    // do CREATE
    WidgetInfo newButton = createButton();
    panel.command_CREATE2(newButton, null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    {",
View Full Code Here

            "      rootPanel.add(button_2);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    StackPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo button_1 = getJavaInfoByName("button_1");
    WidgetInfo button_2 = getJavaInfoByName("button_2");
    assertTrue(isVisible(button_1));
    assertTrue(isVisible(button_2));
    // do ADD
    panel.command_MOVE2(button_2, null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    {",
View Full Code Here

            "      }",
            "    }",
            "  }",
            "}");
    frame.refresh();
    StackPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo button_1 = getJavaInfoByName("button_1");
    WidgetInfo button_2 = getJavaInfoByName("button_2");
    assertTrue(isVisible(button_1));
    assertFalse(isVisible(button_2));
    // do MOVE
    panel.command_MOVE2(button_2, button_1);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    {",
View Full Code Here

            "  }",
            "}");
    frame.refresh();
    //
    {
      StackPanelInfo panel = (StackPanelInfo) frame.getChildrenWidgets().get(0);
      doCopyPaste(panel, new PasteProcedure<WidgetInfo>() {
        public void run(WidgetInfo copy) throws Exception {
          frame.command_CREATE2(copy, null);
        }
      });
View Full Code Here

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

        "  }",
        "}");
  }

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

        "  }",
        "}");
  }

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

        "  }",
        "}");
  }

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

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

TOP

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

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.