topCellStyle = lastRowContent[columnID].cell .getComputedStyle( );
preRowStyle = lastRow.row.getComputedStyle( ); if ( lastRowContent[columnID] != null ) { topCellStyle = lastRowContent[columnID].cell .getComputedStyle( ); }
	public void resolveBorderConflict( CellArea cellArea )	{		IContent cellContent = cellArea.getContent( );		int columnID = cellArea.getColumnID( );		int rowID = cellArea.getRowID( );		int colSpan = cellArea.getColSpan( );		IRowContent row = (IRowContent) cellContent.getParent( );		IStyle cellContentStyle = cellContent.getComputedStyle( );		IStyle cellAreaStyle = cellArea.getStyle( );		IStyle tableStyle = tableContent.getComputedStyle( );		IStyle rowStyle = row.getComputedStyle( );		IStyle columnStyle = getColumnStyle( columnID );		IStyle preRowStyle = null;		IStyle preColumnStyle = getColumnStyle( columnID - 1 );		IStyle leftCellContentStyle = null;		IStyle topCellStyle = null;		if ( rowID == currentRowID-1 )		{			if ( columnID > 0 && currentRowContent[columnID - 1] != null )			{				leftCellContentStyle = currentRowContent[columnID - 1].cell						.getComputedStyle( );			}			if ( lastRow != null )			{				preRowStyle = lastRow.row.getComputedStyle( );				if ( lastRowContent[columnID] != null )				{					topCellStyle = lastRowContent[columnID].cell							.getComputedStyle( );				}			}		}		if ( rowID == 0 )		{			// resolve top border			if ( tablepaginated )			{				bcr.resolvePagenatedTableTopBorder( rowStyle, cellContentStyle,						cellAreaStyle );				tablepaginated = false;			}			else			{				bcr.resolveTableTopBorder( tableStyle, rowStyle, columnStyle,					cellContentStyle, cellAreaStyle );			}			// resolve left border			if ( columnID == 0 )			{				bcr.resolveTableLeftBorder( tableStyle, rowStyle, columnStyle,						cellContentStyle, cellAreaStyle );			}			else			{				bcr.resolveCellLeftBorder( preColumnStyle, columnStyle,						leftCellContentStyle, cellContentStyle, cellAreaStyle );			}			// resovle right border			if ( columnID + colSpan == columnNumber )			{				bcr.resolveTableRightBorder( tableStyle, rowStyle, columnStyle,						cellContentStyle, cellAreaStyle );			}		}		else		{			//resolve group top border			if ( tablepaginated )			{				bcr.resolvePagenatedTableTopBorder( rowStyle, cellContentStyle,						cellAreaStyle );				tablepaginated = false;			}			// resolve top border			else			{				bcr.resolveCellTopBorder( preRowStyle, rowStyle, topCellStyle,						cellContentStyle, cellAreaStyle );			}			// resolve left border			if ( columnID == 0 )			{				// first column				bcr.resolveTableLeftBorder( tableStyle, rowStyle, columnStyle,						cellContentStyle, cellAreaStyle );			}			else			{				// TODO fix row span conflict				bcr.resolveCellLeftBorder( preColumnStyle, columnStyle,						leftCellContentStyle, cellContentStyle, cellAreaStyle );			}			// resolve right border			if ( columnID + colSpan == columnNumber )			{				bcr.resolveTableRightBorder( tableStyle, rowStyle, columnStyle,						cellContentStyle, cellAreaStyle );			}		}	}