bcr.resolveCellTopBorder( preRowStyle, rowStyle, topCellStyle, cellContentStyle, cellAreaStyle );
else { bcr.resolveCellTopBorder( preRowStyle, rowStyle, topCellStyle, cellContentStyle, cellAreaStyle ); }
	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			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 top border			/*			 * if(columnID>0 && isSameCell(rowID-1, columnID-1,rowID-1,			 * columnID)) { // column span if(leftCellAreaStyle!=null) {			 * cellAreaStyle.setProperty(IStyle.STYLE_BORDER_TOP_STYLE,			 * leftCellAreaStyle.getProperty(IStyle.STYLE_BORDER_TOP_STYLE));			 * cellAreaStyle.setProperty(IStyle.STYLE_BORDER_TOP_WIDTH,			 * leftCellAreaStyle.getProperty(IStyle.STYLE_BORDER_TOP_WIDTH));			 * cellAreaStyle.setProperty(IStyle.STYLE_BORDER_TOP_COLOR,			 * leftCellAreaStyle.getProperty(IStyle.STYLE_BORDER_TOP_COLOR)); } }			 * else { bcr.resolveCellTopBorder( preRowStyle, rowStyle,			 * topCellStyle, cellContentStyle, cellAreaStyle ); }			 */			// resolve top border			bcr.resolveCellTopBorder( preRowStyle, rowStyle, topCellStyle,					cellContentStyle, cellAreaStyle );			// resolve left border			if ( columnID == 0 )			{				// first column				bcr.resolveTableLeftBorder( tableStyle, rowStyle, columnStyle,						cellContentStyle, cellAreaStyle );			}			else			{				/*				 * // not the first column // resolve row span conflict				 * if(isSameCell(rowID-1, columnID-1, rowID, columnID-1)) {				 * IStyle topStyle = getCellAreaStyle(rowID-1, columnID);				 * if(topStyle!=null) {				 * cellAreaStyle.setProperty(IStyle.STYLE_BORDER_LEFT_STYLE,				 * topStyle.getProperty(IStyle.STYLE_BORDER_LEFT_STYLE));				 * cellAreaStyle.setProperty(IStyle.STYLE_BORDER_LEFT_WIDTH,				 * topStyle.getProperty(IStyle.STYLE_BORDER_LEFT_WIDTH));				 * cellAreaStyle.setProperty(IStyle.STYLE_BORDER_LEFT_COLOR,				 * topStyle.getProperty(IStyle.STYLE_BORDER_LEFT_COLOR)); } }				 * else { // without row span bcr.resolveCellLeftBorder(				 * preColumnStyle, columnStyle, leftCellContentStyle,				 * cellContentStyle, cellAreaStyle ); }				 */				// 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 );			}		}	}