ru.onego.industrial.catalog.reports
Class ExcelReport

java.lang.Object
  extended by java.util.Observable
      extended by ru.onego.industrial.catalog.reports.AbstractReport
          extended by ru.onego.industrial.catalog.reports.ExcelReport
All Implemented Interfaces:
Report

public class ExcelReport
extends AbstractReport

Doing report to Excel

Version:
1.0
Author:
Lev Levin

Constructor Summary
ExcelReport()
           
 
Method Summary
 void createReport(java.lang.String filename)
          Creates new report and stores it to specified file
 java.lang.String getName()
          Returns "Microsoft Excel workbook report system".
 java.lang.String getStdFileExt()
          Returns extension of MS excel file
 
Methods inherited from class ru.onego.industrial.catalog.reports.AbstractReport
getCatalog, setCatalog
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcelReport

public ExcelReport()
Method Detail

createReport

public void createReport(java.lang.String filename)
                  throws ru.onego.industrial.catalog.reports.ReportException
Creates new report and stores it to specified file

Specified by:
createReport in interface Report
Specified by:
createReport in class AbstractReport
Parameters:
filename - filename of the output report file
Throws:
ReportException

getName

public java.lang.String getName()
Returns "Microsoft Excel workbook report system".

Specified by:
getName in interface Report
Specified by:
getName in class AbstractReport
Returns:
Name of the report

getStdFileExt

public java.lang.String getStdFileExt()
Returns extension of MS excel file

Specified by:
getStdFileExt in interface Report
Specified by:
getStdFileExt in class AbstractReport
Returns:
".xls"