Examples of TableLayoutDataInfo


Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.table.TableLayoutDataInfo

        "{this: com.gwtext.client.widgets.Panel} {this} {/setLayout(new TableLayout(1))/ /add(label)/}",
        "  {new: com.gwtext.client.widgets.layout.TableLayout} {empty} {/setLayout(new TableLayout(1))/}",
        "  {new: com.gwtext.client.widgets.form.Label} {local-unique: label} {/new Label()/ /add(label)/}",
        "    {virtual-layout_data: com.gwtext.client.widgets.layout.TableLayoutData} {virtual-layout-data} {}");
    WidgetInfo label = panel.getChildrenWidgets().get(0);
    TableLayoutDataInfo layoutData = TableLayoutInfo.getTableData(label);
    assertNotNull(layoutData);
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.table.TableLayoutDataInfo

    assertCells(panel.getChildrenWidgets().get(1), 1, 0, 1, 1);
    assertCells(panel.getChildrenWidgets().get(2), 1, 1, 1, 1);
  }

  private static void assertCells(WidgetInfo widget, int column, int row, int colSpan, int rowSpan) {
    TableLayoutDataInfo data = TableLayoutInfo.getTableData(widget);
    assertEquals(column, data.getColumn());
    assertEquals(row, data.getRow());
    assertEquals(colSpan, data.getColSpan());
    assertEquals(rowSpan, data.getRowSpan());
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.table.TableLayoutDataInfo

            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    TableLayoutDataInfo tableData = TableLayoutInfo.getTableData(button);
    // check initial TableLayoutData
    {
      assertEquals(0, getInt(tableData, "x"));
      assertEquals(0, getInt(tableData, "y"));
      assertEquals(1, getInt(tableData, "width"));
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.table.TableLayoutDataInfo

            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    TableLayoutDataInfo tableData = TableLayoutInfo.getTableData(button);
    // check initial TableLayoutData
    {
      assertEquals(0, getInt(tableData, "x"));
      assertEquals(0, getInt(tableData, "y"));
      assertEquals(2, getInt(tableData, "width"));
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.table.TableLayoutDataInfo

            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    TableLayoutDataInfo tableData = TableLayoutInfo.getTableData(button);
    // check initial TableLayoutData
    {
      assertEquals(0, getInt(tableData, "x"));
      assertEquals(0, getInt(tableData, "y"));
      assertEquals(1, getInt(tableData, "width"));
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.table.TableLayoutDataInfo

            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    TableLayoutDataInfo tableData = TableLayoutInfo.getTableData(button);
    // check initial TableLayoutData
    {
      assertEquals(0, getInt(tableData, "x"));
      assertEquals(0, getInt(tableData, "y"));
      assertEquals(1, getInt(tableData, "width"));
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.table.TableLayoutDataInfo

        "  }",
        "}");
    // check x/y for new filler
    {
      WidgetInfo filler = panel.getChildrenWidgets().get(2);
      TableLayoutDataInfo tableData = TableLayoutInfo.getTableData(filler);
      assertEquals(0, getInt(tableData, "x"));
      assertEquals(1, getInt(tableData, "y"));
      assertEquals(1, getInt(tableData, "width"));
      assertEquals(1, getInt(tableData, "height"));
    }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.table.TableLayoutDataInfo

            "}");
    panel.refresh();
    WidgetInfo button = panel.getChildrenWidgets().get(5);
    // check initial location
    {
      TableLayoutDataInfo tableData = TableLayoutInfo.getTableData(button);
      assertEquals(1, getInt(tableData, "x"));
      assertEquals(2, getInt(tableData, "y"));
    }
    // delete "button"
    button.delete();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.