Class TextExporter
java.lang.Object
org.primefaces.component.export.TableExporter<DataTable,P,O>
org.primefaces.component.datatable.export.DataTableExporter<PrintWriter,ExporterOptions>
org.primefaces.showcase.view.data.dataexporter.TextExporter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.primefaces.component.export.TableExporter
TableExporter.ColumnType, TableExporter.FacetType -
Field Summary
Fields inherited from class org.primefaces.component.export.TableExporter
ALL_FACETS, document, exportConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PrintWritercreateDocument(javax.faces.context.FacesContext context) protected voidexportCellValue(javax.faces.context.FacesContext context, DataTable table, UIColumn col, String text, int index) protected voidexportTable(javax.faces.context.FacesContext context, DataTable table, int index) protected voidpreRowExport(javax.faces.context.FacesContext context, DataTable table) Methods inherited from class org.primefaces.component.datatable.export.DataTableExporter
exportAll, exportPageOnly, exportRow, exportSelectionOnlyMethods inherited from class org.primefaces.component.export.TableExporter
addCells, addColumnFacets, addColumnGroupFacets, addTableFacets, export, exportColumnFacetValue, exportColumnGroupFacetValue, exportTabletFacetValue, getExportableColumns, getOnTableRenderArgs, options, os, postExport, postRowExport, preExport
-
Constructor Details
-
TextExporter
public TextExporter()
-
-
Method Details
-
createDocument
- Specified by:
createDocumentin classTableExporter<DataTable,PrintWriter, ExporterOptions> - Throws:
IOException
-
exportTable
protected void exportTable(javax.faces.context.FacesContext context, DataTable table, int index) throws IOException - Overrides:
exportTablein classTableExporter<DataTable,PrintWriter, ExporterOptions> - Throws:
IOException
-
preRowExport
- Overrides:
preRowExportin classTableExporter<DataTable,PrintWriter, ExporterOptions>
-
exportCellValue
protected void exportCellValue(javax.faces.context.FacesContext context, DataTable table, UIColumn col, String text, int index) - Specified by:
exportCellValuein classTableExporter<DataTable,PrintWriter, ExporterOptions>
-
getContentType
-
getFileExtension
-