"{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {/setLayout(new TableLayout(1))/ /add(button, new TableData())/}",
" {new: com.extjs.gxt.ui.client.widget.layout.TableLayout} {empty} {/setLayout(new TableLayout(1))/}",
" {new: com.extjs.gxt.ui.client.widget.button.Button} {local-unique: button} {/new Button()/ /add(button, new TableData())/}",
" {new: com.extjs.gxt.ui.client.widget.layout.TableData} {empty} {/add(button, new TableData())/}");
panel.refresh();
TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
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();
}