public class DataTablePDFExporter extends DataTableExporter
DataTableExporter.ColumnType| Constructor and Description |
|---|
DataTablePDFExporter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addColumnFacets(DataTable table,
com.lowagie.text.pdf.PdfPTable pdfTable,
DataTableExporter.ColumnType columnType) |
protected void |
addColumnValue(com.lowagie.text.pdf.PdfPTable pdfTable,
List<javax.faces.component.UIComponent> components,
com.lowagie.text.Font font,
UIColumn column) |
protected void |
addColumnValue(com.lowagie.text.pdf.PdfPTable pdfTable,
String value) |
protected void |
addColumnValue(com.lowagie.text.pdf.PdfPTable pdfTable,
javax.faces.component.UIComponent component) |
protected void |
addEmptyLine(com.lowagie.text.Paragraph paragraph,
int number) |
protected void |
addTableFacets(javax.faces.context.FacesContext context,
DataTable table,
com.lowagie.text.pdf.PdfPTable pdfTable,
String facetType) |
protected void |
applyCellOptions(ExporterOptions options) |
protected void |
applyFacetOptions(ExporterOptions options) |
protected void |
applyFont(String fontName,
String encoding) |
protected com.lowagie.text.Document |
createDocument() |
protected void |
doExport(javax.faces.context.FacesContext context,
DataTable table,
ExportConfiguration config,
int index)
Export datatable
|
protected void |
exportCells(DataTable table,
Object document) |
protected com.lowagie.text.pdf.PdfPTable |
exportTable(javax.faces.context.FacesContext context,
DataTable table,
ExportConfiguration config) |
protected int |
getColumnsCount(DataTable table) |
protected com.lowagie.text.Document |
getDocument() |
protected void |
postExport(javax.faces.context.FacesContext context,
ExportConfiguration config) |
protected void |
preExport(javax.faces.context.FacesContext context,
ExportConfiguration config) |
protected void |
reset() |
protected void |
setFontStyle(com.lowagie.text.Font cellFont,
String cellFontStyle) |
protected void |
writePDFToResponse(javax.faces.context.ExternalContext externalContext,
ByteArrayOutputStream baos,
String fileName) |
export, exportAll, exportColumnByFunction, exportPageOnly, exportRow, exportRow, exportSelectionOnly, exportValue, getColumnsToExport, hasColumnFooter, postRowExport, preRowExportprotected com.lowagie.text.Document createDocument()
protected com.lowagie.text.Document getDocument()
protected void preExport(javax.faces.context.FacesContext context,
ExportConfiguration config)
throws IOException
preExport in class DataTableExporterIOExceptionprotected void doExport(javax.faces.context.FacesContext context,
DataTable table,
ExportConfiguration config,
int index)
throws IOException
DataTableExporterdoExport in class DataTableExportercontext - faces contexttable - datatable to exportconfig - export configurationindex - datatable current index during export processIOExceptionprotected void postExport(javax.faces.context.FacesContext context,
ExportConfiguration config)
throws IOException
postExport in class DataTableExporterIOExceptionprotected void reset()
protected com.lowagie.text.pdf.PdfPTable exportTable(javax.faces.context.FacesContext context,
DataTable table,
ExportConfiguration config)
protected void addTableFacets(javax.faces.context.FacesContext context,
DataTable table,
com.lowagie.text.pdf.PdfPTable pdfTable,
String facetType)
protected void exportCells(DataTable table, Object document)
exportCells in class DataTableExporterprotected void addColumnFacets(DataTable table, com.lowagie.text.pdf.PdfPTable pdfTable, DataTableExporter.ColumnType columnType)
protected void addColumnValue(com.lowagie.text.pdf.PdfPTable pdfTable,
javax.faces.component.UIComponent component)
protected void addColumnValue(com.lowagie.text.pdf.PdfPTable pdfTable,
String value)
protected void addColumnValue(com.lowagie.text.pdf.PdfPTable pdfTable,
List<javax.faces.component.UIComponent> components,
com.lowagie.text.Font font,
UIColumn column)
protected void writePDFToResponse(javax.faces.context.ExternalContext externalContext,
ByteArrayOutputStream baos,
String fileName)
throws IOException
IOExceptionprotected int getColumnsCount(DataTable table)
protected void addEmptyLine(com.lowagie.text.Paragraph paragraph,
int number)
protected void applyFacetOptions(ExporterOptions options)
protected void applyCellOptions(ExporterOptions options)
protected void setFontStyle(com.lowagie.text.Font cellFont,
String cellFontStyle)
Copyright © 2020. All rights reserved.