|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.report.targets.table.TableProducer | +--com.jrefinery.report.targets.table.excel.ExcelProducer
An output target for the report engine that generates an Excel file using the hffs class library
from the Apache Jakarta Project
(see http://jakarta.apache.org/poi/index.html
.
At the moment only texts are exported.
Field Summary |
Fields inherited from class com.jrefinery.report.targets.table.TableProducer |
AUTHOR, CREATOR, TITLE |
Constructor Summary | |
ExcelProducer(java.io.OutputStream out,
boolean strict)
Creates a new Excel producer. |
Method Summary | |
void |
beginPage(java.lang.String name)
Handles the start of a new page. |
void |
close()
Closes the document and write the generated document. |
void |
configure(java.util.Properties configuration)
Configures the table producer by reading the configuration settings from the given map. |
void |
endPage()
Handles the end of a page, lays out the collected cells and write the excel sheet. |
TableCellDataFactory |
getCellDataFactory()
Gets the TableProducer implementation of this TableProducer. |
boolean |
isOpen()
Returns true if the output target is open, and false otherwise. |
void |
open()
Opens the document; creates a new Workbook and initializes the excel file creation process. |
Methods inherited from class com.jrefinery.report.targets.table.TableProducer |
addCell, clearCells, createTableCellStyle, getCellCount, getProperty, getProperty, getPropertyNames, isDummy, layoutGrid, processBand, setDummy, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExcelProducer(java.io.OutputStream out, boolean strict)
out
- the output stream.strict
- true, if a stricter layout should be used, false otherwise.TableGrid.isStrict()
Method Detail |
public TableCellDataFactory getCellDataFactory()
getCellDataFactory
in class TableProducer
public void open()
open
in class TableProducer
public void beginPage(java.lang.String name)
If the name is null, the default excel names are used as sheet names.
beginPage
in class TableProducer
name
- the page namepublic void endPage()
endPage
in class TableProducer
public void close()
close
in class TableProducer
public boolean isOpen()
isOpen
in class TableProducer
public void configure(java.util.Properties configuration)
configure
in class TableProducer
configuration
- the configuration supplied by the table processor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |