|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.displaytag.render.TableWriterTemplate
org.displaytag.render.TableWriterAdapter
org.displaytag.render.ItextTableWriter
public class ItextTableWriter
A table writer that formats table as and writes it to an iText document.
TableWriterTemplate| Nested Class Summary | |
|---|---|
static interface |
ItextTableWriter.ItextDecorator
An implementor of this interface decorates tables and columns appearing in iText documents. |
| Field Summary |
|---|
| Fields inherited from class org.displaytag.render.TableWriterTemplate |
|---|
GROUP_END, GROUP_NO_CHANGE, GROUP_START, GROUP_START_AND_END, NO_RESET_GROUP |
| Constructor Summary | |
|---|---|
ItextTableWriter(com.lowagie.text.Table table,
com.lowagie.text.Document document)
This table writer uses an iText table and document to do its work. |
|
| Method Summary | |
|---|---|
protected com.lowagie.text.Font |
getCaptionFont()
Obtain the caption font; Meant to be overriden if a different style is desired. |
protected int |
getCaptionHorizontalAlignment()
Obtain the caption horizontal alignment; Meant to be overriden if a different style is desired. |
protected java.awt.Color |
getFooterBackgroundColor()
Obtain the footer background color; Meant to be overriden if a different style is desired. |
protected com.lowagie.text.Font |
getFooterFont()
Obtain the footer font; Meant to be overriden if a different style is desired. |
protected java.awt.Color |
getFooterFontColor()
Obtain the footer font color; Meant to be overriden if a different style is desired. |
protected int |
getFooterHorizontalAlignment()
Obtain the footer horizontal alignment; Meant to be overriden if a different style is desired. |
protected java.awt.Color |
getHeaderBackgroundColor()
Obtain the background color used to render the header; Meant to be overridden if a different header background color is desired. |
protected com.lowagie.text.Font |
getHeaderFont()
Obtain the font used to render the header text; Meant to be overridden if a different header font is desired. |
protected java.awt.Color |
getHeaderFontColor()
Set the font color used to render the header text; Meant to be overridden if a different header style is desired. |
protected int |
getHeaderHorizontalAlignment()
Obtain the horizontal alignment used to render header text; Meant to be overridden if a different alignment is desired. |
protected com.lowagie.text.Font |
getTableFont()
Obtain the font used to render text in the table; Meant to be overriden if a different font is desired. |
protected void |
setFooterFontStyle(com.lowagie.text.Chunk cellContent)
Set the font style used to render the header text; Meant to be overridden if a different header style is desired. |
protected void |
setHeaderFontStyle(com.lowagie.text.Chunk cellContent)
Set the font style used to render the header text; Meant to be overridden if a different header style is desired. |
protected void |
writeCaption(TableModel model)
Write the table's caption to a iText document. |
protected void |
writeColumnOpener(Column column)
Write a column's opening structure to an iText document. |
protected void |
writeColumnValue(java.lang.Object value,
Column column)
Write a column's value to a iText document. |
protected void |
writeDecoratedRowFinish(TableModel model)
Called by writeTableBody to decorate the table. |
protected void |
writeDecoratedRowStart(TableModel model)
Decorators that help render the table to an iText document must implement ItextDecorator. |
protected void |
writeDecoratedTableFinish(TableModel model)
Called by writeTable to decorate the table. |
protected void |
writePostBodyFooter(TableModel model)
Called by writeTable to write table footer after table body. |
protected void |
writeTableHeader(TableModel model)
Write the table's header columns to an iText document. |
protected void |
writeTableOpener(TableModel model)
Initialize the main info holder table, like the appropriate number of columns. |
| Methods inherited from class org.displaytag.render.TableWriterAdapter |
|---|
writeBottomBanner, writeColumnCloser, writeEmptyListMessage, writeEmptyListRowMessage, writePreBodyFooter, writeRowCloser, writeRowOpener, writeRowWithNoColumns, writeTableBodyCloser, writeTableBodyOpener, writeTableCloser, writeTopBanner |
| Methods inherited from class org.displaytag.render.TableWriterTemplate |
|---|
groupColumns, writeTable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ItextTableWriter(com.lowagie.text.Table table,
com.lowagie.text.Document document)
table - iText representation of the table.document - iText document to which the table is written.| Method Detail |
|---|
protected void writeTableOpener(TableModel model)
writeTableOpener in class TableWriterAdaptermodel - The table being represented as iText.TableWriterTemplate.writeTableOpener(org.displaytag.model.TableModel)protected com.lowagie.text.Font getTableFont()
protected void writeCaption(TableModel model)
throws java.lang.Exception
writeCaption in class TableWriterAdaptermodel - The table model for which the content is written.
java.lang.Exception - if it encounters an error while writing.TableWriterTemplate.writeCaption(org.displaytag.model.TableModel)protected com.lowagie.text.Font getCaptionFont()
protected int getCaptionHorizontalAlignment()
protected void writeTableHeader(TableModel model)
throws com.lowagie.text.BadElementException
writeTableHeader in class TableWriterAdaptermodel - The table model for which the content is written.
com.lowagie.text.BadElementException - if an error occurs while writing header.TableWriterTemplate.writeTableHeader(org.displaytag.model.TableModel)
protected void writePostBodyFooter(TableModel model)
throws com.lowagie.text.DocumentException
TableWriterTemplate
writePostBodyFooter in class TableWriterAdaptermodel - The table model for which the content is written.
com.lowagie.text.DocumentException - if an error occurs while writing post-body footer.TableWriterTemplate.writePostBodyFooter(org.displaytag.model.TableModel)protected java.awt.Color getFooterBackgroundColor()
protected int getFooterHorizontalAlignment()
protected void setFooterFontStyle(com.lowagie.text.Chunk cellContent)
cellContent - The header content whose font will be modified.protected java.awt.Color getFooterFontColor()
protected com.lowagie.text.Font getFooterFont()
protected void writeDecoratedRowStart(TableModel model)
writeDecoratedRowStart in class TableWriterAdaptermodel - The table model for which the content is written.TableWriterTemplate.writeDecoratedRowStart(org.displaytag.model.TableModel)
protected void writeDecoratedRowFinish(TableModel model)
throws java.lang.Exception
TableWriterTemplate
writeDecoratedRowFinish in class TableWriterAdaptermodel - The table model for which the content is written.
java.lang.Exception - if it encounters an error while writing.TableWriterTemplate.writeDecoratedRowFinish(org.displaytag.model.TableModel)
protected void writeColumnOpener(Column column)
throws ObjectLookupException,
DecoratorException
writeColumnOpener in class TableWriterAdaptercolumn - The table column for which the content is written.
ObjectLookupException
DecoratorExceptionTableWriterTemplate.writeColumnOpener(org.displaytag.model.Column)
protected void writeColumnValue(java.lang.Object value,
Column column)
throws com.lowagie.text.BadElementException
writeColumnValue in class TableWriterAdaptervalue - The column value.column - The table column for which the content is written.
com.lowagie.text.BadElementExceptionTableWriterTemplate.writeColumnValue(Object,org.displaytag.model.Column)protected void writeDecoratedTableFinish(TableModel model)
TableWriterTemplate
writeDecoratedTableFinish in class TableWriterAdaptermodel - The table model for which the content is written.TableWriterTemplate.writeDecoratedTableFinish(org.displaytag.model.TableModel)protected com.lowagie.text.Font getHeaderFont()
protected java.awt.Color getHeaderBackgroundColor()
protected void setHeaderFontStyle(com.lowagie.text.Chunk cellContent)
cellContent - The header content whose font will be modified.protected java.awt.Color getHeaderFontColor()
protected int getHeaderHorizontalAlignment()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||