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

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


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


            "      panel.add(button_2);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    DeckPanelInfo panel = (DeckPanelInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button_1 = panel.getChildrenWidgets().get(0);
    WidgetInfo button_2 = panel.getChildrenWidgets().get(1);
    // by default "button_1" is displayed
    assertTrue(isVisible(button_1));
    assertFalse(isVisible(button_2));
    // show "button_2"
    panel.showWidget(button_2);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    DeckPanel panel = new DeckPanel();",
View Full Code Here

            "      panel.add(button_2);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    DeckPanelInfo panel = (DeckPanelInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button_1 = panel.getChildrenWidgets().get(0);
    WidgetInfo button_2 = panel.getChildrenWidgets().get(1);
    // "button_2" is displayed
    panel.showWidget(button_2);
    assertFalse(isVisible(button_1));
    assertTrue(isVisible(button_2));
    // delete "button_2", so "button_1" should be displayed
    button_2.delete();
    assertEditor(
View Full Code Here

            "      panel.add(button_3);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    DeckPanelInfo panel = (DeckPanelInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button_1 = panel.getChildrenWidgets().get(0);
    WidgetInfo button_2 = panel.getChildrenWidgets().get(1);
    WidgetInfo button_3 = panel.getChildrenWidgets().get(2);
    //
    panel.showWidget(button_3);
    assertFalse(isVisible(button_1));
    assertFalse(isVisible(button_2));
    assertTrue(isVisible(button_3));
    // move "button_3"
    panel.command_MOVE2(button_3, button_2);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    DeckPanel panel = new DeckPanel();",
View Full Code Here

            "      panel.add(button_2);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    DeckPanelInfo panel = (DeckPanelInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button_1 = panel.getChildrenWidgets().get(0);
    WidgetInfo button_2 = panel.getChildrenWidgets().get(1);
    // initially "button_1" is visible
    assertTrue(isVisible(button_1));
    assertFalse(isVisible(button_2));
    // send "selecting" broadcast
    {
View Full Code Here

            "      }",
            "    }",
            "  }",
            "}");
    frame.refresh();
    DeckPanelInfo panel = (DeckPanelInfo) 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);
    // initially "button_1" is visible
    assertTrue(isVisible(button_1));
    assertFalse(isVisible(flowPanel));
    // send "selecting" broadcast
View Full Code Here

            "      panel.add(button);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    DeckPanelInfo panel = (DeckPanelInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    assertTrue(isVisible(button));
    // send "selecting" broadcast
    {
      boolean[] refreshFlag = new boolean[]{false};
      frame.getBroadcastObject().selecting(button, refreshFlag);
View Full Code Here

            "    }",
            "    panel.showWidget(1);",
            "  }",
            "}");
    frame.refresh();
    DeckPanelInfo panel = (DeckPanelInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button_3 = panel.getChildrenWidgets().get(2);
    // delete "button_3", showWidget(1) should be changed to showWidget(0)
    {
      button_3.delete();
      assertEditor(
          "public class Test implements EntryPoint {",
View Full Code Here

            "    }",
            "    panel.showWidget(0);",
            "  }",
            "}");
    frame.refresh();
    DeckPanelInfo panel = (DeckPanelInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    // delete "button", showWidget(0) should be removed
    button.delete();
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

            "    }",
            "    panel.showWidget(0);",
            "  }",
            "}");
    frame.refresh();
    DeckPanelInfo panel = (DeckPanelInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    // move "button", showWidget(0) should be removed
    frame.command_MOVE2(button, null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

TOP

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

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.