public abstract class DataTableExporter extends Object implements Exporter<DataTable>
Modifier and Type | Class and Description |
---|---|
protected static class |
DataTableExporter.ColumnType |
Constructor and Description |
---|
DataTableExporter() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doExport(javax.faces.context.FacesContext facesContext,
DataTable table,
ExportConfiguration config,
int index)
Export datatable
|
void |
export(javax.faces.context.FacesContext context,
List<DataTable> tables,
ExportConfiguration config) |
protected void |
exportAll(javax.faces.context.FacesContext context,
DataTable table,
Object document) |
protected abstract void |
exportCells(DataTable table,
Object document) |
protected String |
exportColumnByFunction(javax.faces.context.FacesContext context,
UIColumn column) |
protected void |
exportPageOnly(javax.faces.context.FacesContext context,
DataTable table,
Object document) |
protected void |
exportRow(DataTable table,
Object document) |
protected void |
exportRow(DataTable table,
Object document,
int rowIndex) |
protected void |
exportSelectionOnly(javax.faces.context.FacesContext context,
DataTable table,
Object document) |
String |
exportValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
protected List<javax.faces.component.UIColumn> |
getColumnsToExport(javax.faces.component.UIData table) |
protected boolean |
hasColumnFooter(List<javax.faces.component.UIColumn> columns) |
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) |
protected void |
preRowExport(DataTable table,
Object document) |
protected List<javax.faces.component.UIColumn> getColumnsToExport(javax.faces.component.UIData table)
protected boolean hasColumnFooter(List<javax.faces.component.UIColumn> columns)
protected String exportColumnByFunction(javax.faces.context.FacesContext context, UIColumn column)
public String exportValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected void exportPageOnly(javax.faces.context.FacesContext context, DataTable table, Object document)
protected void exportAll(javax.faces.context.FacesContext context, DataTable table, Object document)
protected void exportSelectionOnly(javax.faces.context.FacesContext context, DataTable table, Object document)
protected void preExport(javax.faces.context.FacesContext context, ExportConfiguration config) throws IOException
IOException
protected void postExport(javax.faces.context.FacesContext context, ExportConfiguration config) throws IOException
IOException
public void export(javax.faces.context.FacesContext context, List<DataTable> tables, ExportConfiguration config) throws IOException
export
in interface Exporter<DataTable>
IOException
protected abstract void doExport(javax.faces.context.FacesContext facesContext, DataTable table, ExportConfiguration config, int index) throws IOException
facesContext
- faces contexttable
- datatable to exportconfig
- export configurationindex
- datatable current index during export processIOException
Copyright © 2020. All rights reserved.