Class TreeTablePDFExporter

    • Constructor Detail

      • TreeTablePDFExporter

        public TreeTablePDFExporter()
    • 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,
                                TreeTable table,
                                ExportConfiguration exportConfiguration,
                                int index)
                         throws IOException
        Description copied from class: TreeTableExporter
        Export TreeTable
        Specified by:
        doExport in class TreeTableExporter
        Parameters:
        context - faces context
        table - TreeTable to export
        exportConfiguration - export configuration
        index - TreeTable 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<TreeTable>
      • exportTable

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

        protected void addTableFacets​(javax.faces.context.FacesContext context,
                                      TreeTable table,
                                      com.lowagie.text.pdf.PdfPTable pdfTable,
                                      TreeTableExporter.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​(TreeTable table,
                                      com.lowagie.text.pdf.PdfPTable pdfTable,
                                      List<javax.faces.component.UIComponent> components,
                                      com.lowagie.text.Font font,
                                      UIColumn column)
      • getColumnsCount

        protected int getColumnsCount​(TreeTable 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)