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

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


  //
  // Tests
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_parseThis() throws Exception {
    CaptionPanelInfo panel =
        parseJavaInfo(
            "// filler filler filler",
            "public class Test extends CaptionPanel {",
            "  public Test() {",
            "  }",
            "}");
    assertHierarchy("{this: com.google.gwt.user.client.ui.CaptionPanel} {this} {}");
    panel.refresh();
    //
    Rectangle bounds = panel.getBounds();
    assertEquals(450, bounds.width);
    assertEquals(300, bounds.height);
  }
View Full Code Here


    assertEquals(450, bounds.width);
    assertEquals(300, bounds.height);
  }

  public void test_parseNew() throws Exception {
    CaptionPanelInfo panel =
        parseJavaInfo(
            "public class Test {",
            "  /**",
            "  * @wbp.parser.entryPoint",
            "  */",
            "  public void init() {",
            "    CaptionPanel captionPanel = new CaptionPanel();",
            "  }",
            "}");
    assertHierarchy("{new: com.google.gwt.user.client.ui.CaptionPanel} {local-unique: captionPanel} {/new CaptionPanel()/}");
    panel.refresh();
    //
    Rectangle bounds = panel.getBounds();
    assertEquals(450, bounds.width);
    assertEquals(300, bounds.height);
  }
View Full Code Here

            "      rootPanel.add(captionPanel);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    CaptionPanelInfo panel = getJavaInfoByName("captionPanel");
    // reset "captionText" to default
    panel.getPropertyByTitle("captionText").setValue(Property.UNKNOWN_VALUE);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    {",
View Full Code Here

TOP

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

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.