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

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.VirtualLayoutDataVariableSupport


        "  {new: com.gwtext.client.widgets.form.Label} {local-unique: label} {/new Label()/ /add(label)/}",
        "    {virtual-layout_data: com.gwtext.client.widgets.layout.RowLayoutData} {virtual-layout-data} {}");
    WidgetInfo label = panel.getChildrenWidgets().get(0);
    RowLayoutDataInfo rowData = RowLayoutInfo.getRowData(label);
    //
    VirtualLayoutDataVariableSupport variable =
        (VirtualLayoutDataVariableSupport) rowData.getVariableSupport();
    assertTrue(variable.isDefault());
    assertEquals("(virtual layout data)", variable.getTitle());
    // no target (not sure why)
    try {
      variable.getStatementTarget();
      fail();
    } catch (IllegalStateException e) {
    }
    // materialize
    {
      NodeTarget target = getNodeStatementTarget(panel, false, 1, 1);
      assertEquals("rowLayoutData.", variable.getAccessExpression(target));
      assertHierarchy(
          "{this: com.gwtext.client.widgets.Panel} {this} {/setLayout(new RowLayout())/ /add(label, rowLayoutData)/}",
          "  {new: com.gwtext.client.widgets.layout.RowLayout} {empty} {/setLayout(new RowLayout())/}",
          "  {new: com.gwtext.client.widgets.form.Label} {local-unique: label} {/new Label()/ /add(label, rowLayoutData)/}",
          "    {new: com.gwtext.client.widgets.layout.RowLayoutData} {local-unique: rowLayoutData} {/new RowLayoutData(50)/ /add(label, rowLayoutData)/}");
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.gwtext.model.layout.VirtualLayoutDataVariableSupport

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.