|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.targets.table.TableProducer
com.jrefinery.report.targets.table.html.HtmlProducer
The TableProducer is responsible for creating the produced Table. After the writer has finished the band layout process, the layouted bands are forwarded into the TableProducer. The TableProducer coordinates the cell creation process and collects the generated TableCellData. The raw CellData objects are later transformed into a TableGridLayout.
The generated HTML code is cached and written after the last cell was created, to insert the StyleSheet into the html header.
Field Summary | |
static java.lang.String |
ENCODING
the fileencoding for the main html file. |
static java.lang.String |
ENCODING_DEFAULT
a default value for the fileencoding of the main html file. |
Fields inherited from class com.jrefinery.report.targets.table.TableProducer |
AUTHOR, CREATOR, TITLE |
Constructor Summary | |
HtmlProducer(HtmlFilesystem filesystem,
boolean strict,
boolean useXHTML)
Creates a new HTMLProducer. |
Method Summary | |
void |
beginPage(java.lang.String name)
Start a new page, start a new table. |
void |
close()
Closes the target and writes all generated content into the root stream of the filesystem after generating the StyleSheet information. |
void |
configure(java.util.Properties configuration)
Configures the table producer by reading the configuration settings from the given map. |
protected java.lang.String |
createHtmlBackgroundStyle(java.util.List background)
Merges the backgrounds and creates the StyleSheet information for the cell background. |
void |
endPage()
End the page and generate the table for the page. |
TableCellDataFactory |
getCellDataFactory()
Gets the TableProducer implementation of this TableProducer. |
java.lang.String |
getEncoding()
Gets the defined file encoding for the main html file. |
static CharacterEntityParser |
getEntityParser()
Gets the character entity parser for HTML content. |
boolean |
isOpen()
Returns true, if the TableProducer is open. |
void |
open()
Starts the report writing and prepares the cached output stream. |
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 |
Field Detail |
public static final java.lang.String ENCODING
public static final java.lang.String ENCODING_DEFAULT
Constructor Detail |
public HtmlProducer(HtmlFilesystem filesystem, boolean strict, boolean useXHTML)
filesystem
- the filesystem used to store the generated content.strict
- a flag whether to use the strict layout mode.useXHTML
- a flag whether to generate XHTML content.Method Detail |
public java.lang.String getEncoding()
public static CharacterEntityParser getEntityParser()
public void open()
open
in class TableProducer
public void close()
close
in class TableProducer
public void endPage()
endPage
in class TableProducer
public void beginPage(java.lang.String name)
beginPage
in class TableProducer
name
- the page namepublic TableCellDataFactory getCellDataFactory()
getCellDataFactory
in class TableProducer
public boolean isOpen()
isOpen
in class TableProducer
protected java.lang.String createHtmlBackgroundStyle(java.util.List background)
background
- the (unmerged) background styles.
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 |