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

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.MultiFieldPanelInfo


  //
  // Tests
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_parse() throws Exception {
    MultiFieldPanelInfo panel =
        parseJavaInfo(
            "public class Test extends MultiFieldPanel {",
            "  public Test() {",
            "    {",
            "      TextField textField_1 = new TextField();",
            "      addToRow(textField_1, 100);",
            "    }",
            "    {",
            "      TextField textField_2 = new TextField();",
            "      addToRow(textField_2, new ColumnLayoutData(0.5));",
            "    }",
            "  }",
            "}");
    panel.refresh();
    //
    assertHierarchy(
        "{this: com.gwtext.client.widgets.form.MultiFieldPanel} {this} {/addToRow(textField_1, 100)/ /addToRow(textField_2, new ColumnLayoutData(0.5))/}",
        "  {new: com.gwtext.client.widgets.form.TextField} {local-unique: textField_1} {/new TextField()/ /addToRow(textField_1, 100)/}",
        "  {new: com.gwtext.client.widgets.form.TextField} {local-unique: textField_2} {/new TextField()/ /addToRow(textField_2, new ColumnLayoutData(0.5))/}",
View Full Code Here


        "  {new: com.gwtext.client.widgets.form.TextField} {local-unique: textField_2} {/new TextField()/ /addToRow(textField_2, new ColumnLayoutData(0.5))/}",
        "    {new: com.gwtext.client.widgets.layout.ColumnLayoutData} {empty} {/addToRow(textField_2, new ColumnLayoutData(0.5))/}");
  }

  public void test_propertyWidth() throws Exception {
    MultiFieldPanelInfo panel =
        parseJavaInfo(
            "public class Test extends MultiFieldPanel {",
            "  public Test() {",
            "    {",
            "      TextField textField = new TextField();",
            "      addToRow(textField, 100);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    WidgetInfo field = panel.getChildrenWidgets().get(0);
    Property property = field.getPropertyByTitle("Width");
    assertNotNull(property);
    // "int" value
    assertEquals("100", property.getValue());
    // set "50%"
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.gwtext.model.widgets.MultiFieldPanelInfo

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.