public class DataTableCSVExporter extends DataTableExporter
DataTableExporter.ColumnType
Constructor and Description |
---|
DataTableCSVExporter() |
Modifier and Type | Method and Description |
---|---|
protected void |
addColumnFacets(StringBuilder builder,
DataTable table,
DataTableExporter.ColumnType columnType) |
protected void |
addColumnValue(StringBuilder builder,
List<javax.faces.component.UIComponent> components,
UIColumn column) |
protected void |
addColumnValue(StringBuilder builder,
String value) |
protected void |
addColumnValue(StringBuilder builder,
javax.faces.component.UIComponent component) |
protected void |
addColumnValues(StringBuilder builder,
List<UIColumn> columns) |
protected void |
configureResponse(javax.faces.context.ExternalContext externalContext,
String filename,
String encodingType) |
protected StringBuilder |
createStringBuilder() |
void |
doExport(javax.faces.context.FacesContext context,
DataTable table,
ExportConfiguration config,
int index)
Export datatable
|
protected void |
exportCells(DataTable table,
Object document) |
protected StringBuilder |
getStringBuilder() |
protected void |
postExport(javax.faces.context.FacesContext context,
ExportConfiguration config) |
protected void |
postRowExport(DataTable table,
Object document) |
protected void |
preExport(javax.faces.context.FacesContext context,
ExportConfiguration config) |
export, exportAll, exportColumnByFunction, exportPageOnly, exportRow, exportRow, exportSelectionOnly, exportValue, getColumnsToExport, hasColumnFooter, preRowExport
protected StringBuilder createStringBuilder()
protected StringBuilder getStringBuilder()
protected void preExport(javax.faces.context.FacesContext context, ExportConfiguration config) throws IOException
preExport
in class DataTableExporter
IOException
public void doExport(javax.faces.context.FacesContext context, DataTable table, ExportConfiguration config, int index) throws IOException
DataTableExporter
doExport
in class DataTableExporter
context
- faces contexttable
- datatable to exportconfig
- export configurationindex
- datatable current index during export processIOException
protected void addColumnFacets(StringBuilder builder, DataTable table, DataTableExporter.ColumnType columnType) throws IOException
IOException
protected void exportCells(DataTable table, Object document)
exportCells
in class DataTableExporter
protected void configureResponse(javax.faces.context.ExternalContext externalContext, String filename, String encodingType)
protected void addColumnValues(StringBuilder builder, List<UIColumn> columns) throws IOException
IOException
protected void addColumnValue(StringBuilder builder, javax.faces.component.UIComponent component) throws IOException
IOException
protected void addColumnValue(StringBuilder builder, String value) throws IOException
IOException
protected void addColumnValue(StringBuilder builder, List<javax.faces.component.UIComponent> components, UIColumn column) throws IOException
IOException
protected void postRowExport(DataTable table, Object document)
postRowExport
in class DataTableExporter
protected void postExport(javax.faces.context.FacesContext context, ExportConfiguration config) throws IOException
postExport
in class DataTableExporter
IOException
Copyright © 2020. All rights reserved.