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

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


        "  {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)/}",
        "    {virtual-layout_data: com.gwtext.client.widgets.layout.RowLayoutData} {virtual-layout-data} {}");
    WidgetInfo label = panel.getChildrenWidgets().get(0);
    RowLayoutDataInfo rowData = RowLayoutInfo.getRowData(label);
    VirtualLayoutDataCreationSupport creationSupport =
        (VirtualLayoutDataCreationSupport) rowData.getCreationSupport();
    // access
    assertNull(creationSupport.getNode());
    assertEquals(
        "virtual-layout_data: com.gwtext.client.widgets.layout.RowLayoutData",
        creationSupport.toString());
    // validation
    assertFalse(creationSupport.canReorder());
    assertFalse(creationSupport.canReparent());
    // no implicit clipboard
    assertNull(creationSupport.getImplicitClipboard());
    // delete, nothing changed
    {
      String expectedSource = m_lastEditor.getSource();
      String expectedHierarchy = printHierarchy(panel);
      assertTrue(creationSupport.canDelete());
      rowData.delete();
      assertEditor(expectedSource, m_lastEditor);
      assertEquals(expectedHierarchy, printHierarchy(panel));
      assertSame(rowData, RowLayoutInfo.getRowData(label));
    }
View Full Code Here

TOP

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

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.