jdbreport.model.io.poi.xls
Class Excel2003Writer

java.lang.Object
  extended by jdbreport.model.io.poi.xls.Excel2003Writer
All Implemented Interfaces:
ReportWriter, ResourceWriter
Direct Known Subclasses:
Excel2007Writer

public class Excel2003Writer
extends Object
implements ReportWriter

Version:
2.0 30.03.2012
Author:
Andrey Kholmanskih

Constructor Summary
Excel2003Writer()
           
 
Method Summary
protected  short colorToIndex(org.apache.poi.ss.usermodel.Workbook wb, Color color)
           
protected  short convertHorizontalAlign(int hAlignment)
           
protected  short convertVerticalAlign(int vAlignment)
           
protected  org.apache.poi.ss.usermodel.CellStyle createStyle(CellStyle style, org.apache.poi.ss.usermodel.Workbook wb)
           
protected  org.apache.poi.ss.usermodel.Workbook createWorkbook()
           
protected  short getBorder(Border border)
           
 void save(File file, ReportBook reportBook)
           
 void save(OutputStream out, ReportBook reportBook)
           
 void save(Writer writer, ReportBook reportBook)
           
 String write(String fileName, Object resource)
          Write of resources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Excel2003Writer

public Excel2003Writer()
Method Detail

save

public void save(Writer writer,
                 ReportBook reportBook)
          throws SaveReportException
Specified by:
save in interface ReportWriter
Throws:
SaveReportException

save

public void save(File file,
                 ReportBook reportBook)
          throws SaveReportException
Specified by:
save in interface ReportWriter
Throws:
SaveReportException

save

public void save(OutputStream out,
                 ReportBook reportBook)
          throws SaveReportException
Specified by:
save in interface ReportWriter
Throws:
SaveReportException

createWorkbook

protected org.apache.poi.ss.usermodel.Workbook createWorkbook()

createStyle

protected org.apache.poi.ss.usermodel.CellStyle createStyle(CellStyle style,
                                                            org.apache.poi.ss.usermodel.Workbook wb)

getBorder

protected short getBorder(Border border)

convertHorizontalAlign

protected short convertHorizontalAlign(int hAlignment)

convertVerticalAlign

protected short convertVerticalAlign(int vAlignment)

colorToIndex

protected short colorToIndex(org.apache.poi.ss.usermodel.Workbook wb,
                             Color color)

write

public String write(String fileName,
                    Object resource)
             throws SaveReportException
Description copied from interface: ResourceWriter
Write of resources

Specified by:
write in interface ResourceWriter
Returns:
the filename
Throws:
SaveReportException