// container.add(table);
}
@SuppressWarnings("unused")
public static void test04() throws SemanticException, IOException {
GridHandle gridHandle = (GridHandle) reportDesignHandle.findElement("myGrid");
int rowCount = gridHandle.getRows().getCount(); // = 1
System.out.println("rowCount = " + rowCount);
int colCount = gridHandle.getColumns().getCount(); // = 1
// System.out.println("colCount = " + colCount);
// ############# create row
RowHandle row = reportDesignHandle.getElementFactory().newTableRow();
DesignElement deRow = row.getElement();
gridHandle.getElement().add(deRow, GridItem.ROW_SLOT);
int rowCount2 = gridHandle.getRows().getCount(); // = 2
System.out.println("rowCount2 = " + rowCount2);
int colCount2 = gridHandle.getColumns().getCount(); // = 1
// System.out.println("colCount2 = " + colCount2);
// create label for cell in row 1 / column 0
LabelHandle lblHandle = elementFactory.newLabel(null);
lblHandle.setText("Cell x:x");
CellHandle cell = gridHandle.getCell(1, 0);
cell.getContent().add(lblHandle);
// ############# create column
ColumnHandle column = reportDesignHandle.getElementFactory().newTableColumn();
DesignElement deColumn = column.getElement();
gridHandle.getElement().add(deColumn, GridItem.COLUMN_SLOT);
int rowCount3 = gridHandle.getRows().getCount(); // = 2
int colCount3 = gridHandle.getColumns().getCount(); // = 2
// create label for cell in row 0 / column 1
LabelHandle lblHandle2 = elementFactory.newLabel(null);
lblHandle.setText("Cell y:y");
// this.setStyle(lblHandle2, "borderSolidThin");
CellHandle cell2 = gridHandle.getCell(0, 1);
cell2.getContent().add(lblHandle2);
System.out.println("Finished");
}