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

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


            "    rootPanel.add(panel);",
            "  }",
            "}");
    frame.refresh();
    //
    PanelInfo panel = (PanelInfo) frame.getChildrenWidgets().get(0);
    assertTrue(panel.shouldDrawDotsBorder());
  }
View Full Code Here


            "    panel.setStyleName('my-Panel');",
            "  }",
            "}");
    frame.refresh();
    //
    PanelInfo panel = (PanelInfo) frame.getChildrenWidgets().get(0);
    assertFalse(panel.shouldDrawDotsBorder());
  }
View Full Code Here

    PanelInfo panel = (PanelInfo) frame.getChildrenWidgets().get(0);
    assertFalse(panel.shouldDrawDotsBorder());
  }

  public void test_extendPanel() throws Exception {
    PanelInfo panel =
        parseJavaInfo(
            "// filler filler filler",
            "public class Test extends HorizontalPanel {",
            "  public Test() {",
            "  }",
            "}");
    panel.refresh();
    assertNoErrors(panel);
    // bounds
    Rectangle bounds = panel.getBounds();
    assertThat(bounds.width).isEqualTo(450);
    assertThat(bounds.height).isEqualTo(300);
  }
View Full Code Here

   * <code>setSize()</code>.
   * <p>
   * http://jira.codehaus.org/browse/MVEL-151
   */
  public void test_extendPanel_MVEL151() throws Exception {
    PanelInfo panel =
        parseJavaInfo(
            "// filler filler filler",
            "public class Test extends VerticalPanel {",
            "  public Test() {",
            "  }",
            "}");
    panel.refresh();
    assertNoErrors(panel);
    // bounds
    Rectangle bounds = panel.getBounds();
    assertThat(bounds.width).isEqualTo(450);
    assertThat(bounds.height).isEqualTo(300);
  }
View Full Code Here

   * Panel. So, we need to have top bounds script.
   * <p>
   * http://fogbugz.instantiations.com/fogbugz/default.php?41093
   */
  public void test_renderPanel() throws Exception {
    PanelInfo panel =
        parseJavaInfo(
            "public class Test extends Composite {",
            "  public Test() {",
            "    VerticalPanel panel = new VerticalPanel();",
            "    panel.add(new Button());",
            "  }",
            "}");
    panel.refresh();
    //
    Rectangle bounds = panel.getBounds();
    assertEquals(450, bounds.width);
    assertEquals(300, bounds.height);
  }
View Full Code Here

   * We should not intercept method <code>HasWidgets.iterator()</code>.
   * <p>
   * http://fogbugz.instantiations.com/fogbugz/default.php?45034
   */
  public void test_dontIntercept_iterator() throws Exception {
    PanelInfo panel =
        parseJavaInfo(
            "public class Test extends VerticalPanel {",
            "  public Test() {",
            "  }",
            "  public java.util.Iterator iterator() {",
            "    return this.getChildren().iterator();",
            "  }",
            "}");
    panel.refresh();
    assertNoErrors(panel);
  }
View Full Code Here

            "  }",
            "}"));
    waitForAutoBuild();
    // parse
    useStrictEvaluationMode(false);
    PanelInfo panel =
        parseJavaInfo(
            "public class Test extends MyPanel {",
            "  public Test(MyConstants constants) {",
            "    super(constants);",
            "  }",
            "}");
    panel.refresh();
    assertEquals("My title", (String) ReflectionUtils.invokeMethod(panel.getObject(), "getTitle()"));
  }
View Full Code Here

            "    FlowPanel flowPanel = new FlowPanel();",
            "    rootPanel.add(flowPanel);",
            "  }",
            "}");
    frame.refresh();
    PanelInfo flowPanel = (PanelInfo) frame.getChildrenWidgets().get(0);
    // do CREATE
    WidgetInfo newButton = createButton();
    flowContainer_CREATE(flowPanel, newButton, null);
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here

            "    panel.setPixelSize(300, 200);",
            "  }",
            "}");
    frame.refresh();
    //
    PanelInfo panel = (PanelInfo) frame.getChildrenWidgets().get(0);
    assertEquals(300, panel.getBounds().width);
    assertEquals(200, panel.getBounds().height);
    // check FlowContainer
    FlowContainer flowContainer = getFlowContainer(panel);
    assertTrue(flowContainer.isHorizontal());
  }
View Full Code Here

            "    panel.setPixelSize(300, 200);",
            "  }",
            "}");
    frame.refresh();
    //
    PanelInfo panel = (PanelInfo) frame.getChildrenWidgets().get(0);
    assertEquals(300, panel.getBounds().width);
    assertEquals(200, panel.getBounds().height);
    // check FlowContainer
    FlowContainer flowContainer = getFlowContainer(panel);
    assertFalse(flowContainer.isHorizontal());
  }
View Full Code Here

TOP

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

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.