|
From: xanaot <xa...@us...> - 2007-10-17 17:37:27
|
Update of /cvsroot/tail/Tail/src/java/net/sf/tail/report/xls In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv28044/src/java/net/sf/tail/report/xls Modified Files: CellStylist.java Log Message: Refatoração dos testes do Report XLS generator Index: CellStylist.java =================================================================== RCS file: /cvsroot/tail/Tail/src/java/net/sf/tail/report/xls/CellStylist.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** CellStylist.java 3 Oct 2007 17:47:00 -0000 1.6 --- CellStylist.java 17 Oct 2007 17:37:28 -0000 1.7 *************** *** 16,19 **** --- 16,21 ---- public class CellStylist { + protected HSSFWorkbook workbook; + public CellStylist(HSSFWorkbook workbook) { this.workbook = workbook; *************** *** 21,25 **** protected int loadPicture(HSSFWorkbook wb, File reportPNG) throws IOException { - int pictureIndex = 0; FileInputStream fis = null; --- 23,26 ---- *************** *** 41,46 **** } - protected HSSFWorkbook workbook; - protected void rearrangeSheet(HSSFSheet sheet, int numColumn) { for (int i = 0; i < numColumn; i++) { --- 42,45 ---- *************** *** 77,81 **** return style; } ! protected HSSFCellStyle createInternalCellStyle() { HSSFCellStyle style = workbook.createCellStyle(); --- 76,80 ---- return style; } ! protected HSSFCellStyle createInternalCellStyle() { HSSFCellStyle style = workbook.createCellStyle(); *************** *** 83,87 **** style.setBorderLeft(HSSFCellStyle.BORDER_MEDIUM); style.setAlignment(HSSFCellStyle.ALIGN_CENTER); ! HSSFFont font = workbook.createFont(); font.setFontName("Arial"); --- 82,86 ---- style.setBorderLeft(HSSFCellStyle.BORDER_MEDIUM); style.setAlignment(HSSFCellStyle.ALIGN_CENTER); ! HSSFFont font = workbook.createFont(); font.setFontName("Arial"); |