Class DataTablePDFExporter

    • Constructor Detail

      • DataTablePDFExporter

        public DataTablePDFExporter()
    • Method Detail

      • createDocument

        protected com.lowagie.text.Document createDocument()
      • getDocument

        protected com.lowagie.text.Document getDocument()
      • doExport

        protected void doExport​(javax.faces.context.FacesContext context,
                                DataTable table,
                                ExportConfiguration exportConfiguration,
                                int index)
                         throws IOException
        Description copied from class: DataTableExporter
        Export datatable
        Specified by:
        doExport in class DataTableExporter
        Parameters:
        context - faces context
        table - datatable to export
        exportConfiguration - export configuration
        index - datatable current index during export process
        Throws:
        IOException
      • getContentType

        public String getContentType()
        Description copied from class: Exporter
        Content-type (MIME-type) excluding charset. (eg 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
        Specified by:
        getContentType in class Exporter<DataTable>
      • exportTable

        protected com.lowagie.text.pdf.PdfPTable exportTable​(javax.faces.context.FacesContext context,
                                                             DataTable table,
                                                             ExportConfiguration config)
      • addTableFacets

        protected void addTableFacets​(javax.faces.context.FacesContext context,
                                      DataTable table,
                                      com.lowagie.text.pdf.PdfPTable pdfTable,
                                      DataTableExporter.ColumnType columnType)
      • addColumnValue

        protected void addColumnValue​(com.lowagie.text.pdf.PdfPTable pdfTable,
                                      javax.faces.component.UIComponent component)
      • addColumnValue

        protected com.lowagie.text.pdf.PdfPCell addColumnValue​(com.lowagie.text.pdf.PdfPTable pdfTable,
                                                               String value,
                                                               int rowSpan,
                                                               int colSpan)
      • addColumnValue

        protected void addColumnValue​(DataTable table,
                                      com.lowagie.text.pdf.PdfPTable pdfTable,
                                      List<javax.faces.component.UIComponent> components,
                                      com.lowagie.text.Font font,
                                      UIColumn column)
      • getColumnsCount

        protected int getColumnsCount​(DataTable table)
      • addEmptyLine

        protected void addEmptyLine​(com.lowagie.text.Paragraph paragraph,
                                    int number)
      • applyFacetOptions

        protected void applyFacetOptions​(ExporterOptions options)
      • applyCellOptions

        protected void applyCellOptions​(ExporterOptions options)
      • setFontStyle

        protected void setFontStyle​(com.lowagie.text.Font cellFont,
                                    String cellFontStyle)
      • applyFont

        protected void applyFont​(String fontName,
                                 String encoding)
      • createCell

        protected com.lowagie.text.pdf.PdfPCell createCell​(UIColumn column,
                                                           com.lowagie.text.Phrase phrase)
      • applyColumnAlignments

        protected com.lowagie.text.pdf.PdfPCell applyColumnAlignments​(UIColumn column,
                                                                      com.lowagie.text.pdf.PdfPCell cell)