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

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


  //
  // Tests
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_parse() throws Exception {
    LazyPanelInfo panel =
        parseJavaInfo(
            "public class Test extends LazyPanel {",
            "  protected Widget createWidget() {",
            "    return new Button();",
            "  }",
            "}");
    assertHierarchy(
        "{this: com.google.gwt.user.client.ui.LazyPanel} {this} {}",
        "  {new: com.google.gwt.user.client.ui.Button} {empty} {/new Button()/}");
    //
    panel.refresh();
    assertNoErrors(panel);
  }
View Full Code Here


    panel.refresh();
    assertNoErrors(panel);
  }

  public void test_setSize_forContent() throws Exception {
    LazyPanelInfo panel =
        parseJavaInfo(
            "public class Test extends LazyPanel {",
            "  public Test() {",
            "  }",
            "  protected Widget createWidget() {",
            "    return new Button();",
            "  }",
            "}");
    panel.refresh();
    WidgetInfo button = panel.getWidget();
    //
    button.getSizeSupport().setSize("200px", "100px");
    assertEditor(
        "public class Test extends LazyPanel {",
        "  public Test() {",
View Full Code Here

TOP

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

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.