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.getSlot( TableItem.COLUMN_SLOT ).add( column ); column.setContainer( table, TableItem.COLUMN_SLOT ); }  for ( int i = 0; i < headerRow; i++ ) { TableRow row = (TableRow) newTableRow( columnNum ).getElement( ); table.getSlot( TableItem.HEADER_SLOT ).add( row ); row.setContainer( table, TableItem.HEADER_SLOT ); }  for ( int i = 0; i < footerRow; i++ ) { TableRow row = (TableRow) newTableRow( columnNum ).getElement( ); table.getSlot( TableItem.FOOTER_SLOT ).add( row ); row.setContainer( table, TableItem.FOOTER_SLOT ); }  for ( int i = 0; i < detailRow; i++ ) { TableRow row = (TableRow) newTableRow( columnNum ).getElement( ); table.getSlot( TableItem.DETAIL_SLOT ).add( row ); row.setContainer( table, TableItem.DETAIL_SLOT ); }  table.refreshRenderModel( module ); return tableHandle;
TableItem element = new TableItem( name ); module.makeUniqueName( element ); return element.handle( module );
	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.getSlot( TableItem.COLUMN_SLOT ).add( column );			column.setContainer( table, TableItem.COLUMN_SLOT );		}		for ( int i = 0; i < headerRow; i++ )		{			TableRow row = (TableRow) newTableRow( columnNum ).getElement( );			table.getSlot( TableItem.HEADER_SLOT ).add( row );			row.setContainer( table, TableItem.HEADER_SLOT );		}		for ( int i = 0; i < footerRow; i++ )		{			TableRow row = (TableRow) newTableRow( columnNum ).getElement( );			table.getSlot( TableItem.FOOTER_SLOT ).add( row );			row.setContainer( table, TableItem.FOOTER_SLOT );		}		for ( int i = 0; i < detailRow; i++ )		{			TableRow row = (TableRow) newTableRow( columnNum ).getElement( );			table.getSlot( TableItem.DETAIL_SLOT ).add( row );			row.setContainer( table, TableItem.DETAIL_SLOT );		}		table.refreshRenderModel( module );		return tableHandle;	}