Home » displaytag-1.1.1-src » org » displaytag » render » [javadoc | source]
org.displaytag.render
public class: ItextTableWriter [javadoc | source]
java.lang.Object
   org.displaytag.render.TableWriterTemplate
      org.displaytag.render.TableWriterAdapter
         org.displaytag.render.ItextTableWriter
A table writer that formats table as and writes it to an iText document.
Nested Class Summary:
public interface  ItextTableWriter.ItextDecorator  An implementor of this interface decorates tables and columns appearing in iText documents. 
Fields inherited from org.displaytag.render.TableWriterTemplate:
GROUP_START,  GROUP_END,  GROUP_START_AND_END,  GROUP_NO_CHANGE,  NO_RESET_GROUP,  lowestEndedGroup,  lowestStartedGroup
Constructor:
 public ItextTableWriter(Table table,
    Document document) 
    This table writer uses an iText table and document to do its work.
    Parameters:
    table - iText representation of the table.
    document - iText document to which the table is written.
Method from org.displaytag.render.ItextTableWriter Summary:
getCaptionFont,   getCaptionHorizontalAlignment,   getFooterBackgroundColor,   getFooterFont,   getFooterFontColor,   getFooterHorizontalAlignment,   getHeaderBackgroundColor,   getHeaderFont,   getHeaderFontColor,   getHeaderHorizontalAlignment,   getTableFont,   setFooterFontStyle,   setHeaderFontStyle,   writeCaption,   writeColumnOpener,   writeColumnValue,   writeDecoratedRowFinish,   writeDecoratedRowStart,   writeDecoratedTableFinish,   writePostBodyFooter,   writeTableHeader,   writeTableOpener
Methods from org.displaytag.render.TableWriterAdapter:
writeBottomBanner,   writeCaption,   writeColumnCloser,   writeColumnOpener,   writeColumnValue,   writeDecoratedRowFinish,   writeDecoratedRowStart,   writeDecoratedTableFinish,   writeEmptyListMessage,   writeEmptyListRowMessage,   writePostBodyFooter,   writePreBodyFooter,   writeRowCloser,   writeRowOpener,   writeRowWithNoColumns,   writeTableBodyCloser,   writeTableBodyOpener,   writeTableCloser,   writeTableHeader,   writeTableOpener,   writeTopBanner
Methods from org.displaytag.render.TableWriterTemplate:
groupColumns,   writeBottomBanner,   writeCaption,   writeColumnCloser,   writeColumnOpener,   writeColumnValue,   writeDecoratedRowFinish,   writeDecoratedRowStart,   writeDecoratedTableFinish,   writeEmptyListMessage,   writeEmptyListRowMessage,   writePostBodyFooter,   writePreBodyFooter,   writeRowCloser,   writeRowOpener,   writeRowWithNoColumns,   writeTable,   writeTableBodyCloser,   writeTableBodyOpener,   writeTableCloser,   writeTableHeader,   writeTableOpener,   writeTopBanner
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.displaytag.render.ItextTableWriter Detail:
 protected 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 Color getFooterBackgroundColor() 
    Obtain the footer background color; Meant to be overriden if a different style is desired.
 protected Font getFooterFont() 
    Obtain the footer font; Meant to be overriden if a different style is desired.
 protected 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 Color getHeaderBackgroundColor() 
    Obtain the background color used to render the header; Meant to be overridden if a different header background color is desired.
 protected Font getHeaderFont() 
    Obtain the font used to render the header text; Meant to be overridden if a different header font is desired.
 protected 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 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(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(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) throws Exception 
    Write the table's caption to a iText document.
 protected  void writeColumnOpener(Column column) throws DecoratorException, ObjectLookupException 
    Write a column's opening structure to an iText document.
 protected  void writeColumnValue(Object value,
    Column column) throws BadElementException 
    Write a column's value to a iText document.
 protected  void writeDecoratedRowFinish(TableModel model) throws Exception 
 protected  void writeDecoratedRowStart(TableModel model) 
    Decorators that help render the table to an iText document must implement ItextDecorator.
 protected  void writeDecoratedTableFinish(TableModel model) 
 protected  void writePostBodyFooter(TableModel model) throws DocumentException 
 protected  void writeTableHeader(TableModel model) throws BadElementException 
    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.