Bug 184762 BIRT Model - Enhancments to the level defintion
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ElementFactory.java
* @return A handle to the table item.
	 */
	public TableHandle newTableItem( String name, int columnNum, int headerRow,
			int detailRow, int footerRow )
	{
		TableHandle tableHandle = newTableItem( name );
		TableItem table = (TableItem) tableHandle.getElement( );
		columnNum = columnNum >= 0 ? columnNum : 0;
		headerRow = headerRow >= 0 ? headerRow : 0;
		footerRow = footerRow >= 0 ? footerRow : 0;
		detailRow = detailRow >= 0 ? detailRow : 0;
		for ( int i = 0; i < columnNum; i++ )
		{
			TableColumn column = new TableColumn( );
			table.add( column, ITableItemModel.COLUMN_SLOT );
		}
		for ( int i = 0; i < headerRow; i++ )
		{
			TableRow row = (TableRow) newTableRow( columnNum ).getElement( );
			table.add( row, IListingElementModel.HEADER_SLOT );
		}
		for ( int i = 0; i < footerRow; i++ )
		{
			TableRow row = (TableRow) newTableRow( columnNum ).getElement( );
			table.add( row, IListingElementModel.FOOTER_SLOT );
		}
		for ( int i = 0; i < detailRow; i++ )
		{
			TableRow row = (TableRow) newTableRow( columnNum ).getElement( );
			table.add( row, IListingElementModel.DETAIL_SLOT );