jdbreport.model.io.poi.xls
Class Excel2003Writer
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Excel2003Writer
public Excel2003Writer()
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