Package com.google.gdt.eclipse.designer.gxt.model.layout.table

Examples of com.google.gdt.eclipse.designer.gxt.model.layout.table.TableDataInfo


        "  }",
        "}");
    // check x/y for new filler
    {
      WidgetInfo filler = panel.getWidgets().get(2);
      TableDataInfo 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


            "}");
    panel.refresh();
    WidgetInfo button = panel.getWidgets().get(5);
    // check initial location
    {
      TableDataInfo tableData = TableLayoutInfo.getTableData(button);
      assertEquals(1, getInt(tableData, "x"));
      assertEquals(2, getInt(tableData, "y"));
    }
    // delete "button"
    button.delete();
View Full Code Here

    WidgetInfo button = panel.getWidgets().get(0);
    // we can ask "grid", no exception
    layout.getGridInfo();
    // delete "explicit TableData"
    {
      TableDataInfo tableData = TableLayoutInfo.getTableData(button);
      assertEquals(0, tableData.getColumn());
      assertEquals(0, tableData.getRow());
      assertEquals(1, tableData.getColSpan());
      assertEquals(1, tableData.getRowSpan());
      tableData.delete();
    }
    // because of invalid values in "virtual TableData"...
    {
      TableDataInfo tableData = TableLayoutInfo.getTableData(button);
      assertEquals(0, tableData.getColumn());
      assertEquals(0, tableData.getRow());
      assertEquals(1, tableData.getColSpan());
      assertEquals(1, tableData.getRowSpan());
    }
    // ...this caused exception
    layout.getGridInfo();
  }
View Full Code Here

        "{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {/setLayout(new TableLayout(1))/ /add(label)/}",
        "  {new: com.extjs.gxt.ui.client.widget.layout.TableLayout} {empty} {/setLayout(new TableLayout(1))/}",
        "  {new: com.extjs.gxt.ui.client.widget.Text} {local-unique: label} {/new Text()/ /add(label)/}",
        "    {virtual-layout_data: com.extjs.gxt.ui.client.widget.layout.TableData} {virtual-layout-data} {}");
    WidgetInfo label = container.getWidgets().get(0);
    TableDataInfo layoutData = TableLayoutInfo.getTableData(label);
    assertNotNull(layoutData);
  }
View Full Code Here

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

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

            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    WidgetInfo button = panel.getWidgets().get(0);
    TableDataInfo 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

            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    WidgetInfo button = panel.getWidgets().get(0);
    TableDataInfo 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

            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    WidgetInfo button = panel.getWidgets().get(0);
    TableDataInfo 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

            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    WidgetInfo button = panel.getWidgets().get(0);
    TableDataInfo 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

TOP

Related Classes of com.google.gdt.eclipse.designer.gxt.model.layout.table.TableDataInfo

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.