Class DataTableXMLExporter
- java.lang.Object
-
- org.primefaces.component.datatable.export.DataTableExporter
-
- org.primefaces.component.datatable.export.DataTableXMLExporter
-
public class DataTableXMLExporter extends DataTableExporter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.primefaces.component.datatable.export.DataTableExporter
DataTableExporter.ColumnType
-
-
Constructor Summary
Constructors Constructor Description DataTableXMLExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddColumnValue(PrintWriter writer, DataTable table, List<javax.faces.component.UIComponent> components, String tag, UIColumn column)voiddoExport(javax.faces.context.FacesContext context, DataTable table, ExportConfiguration exportConfiguration, int index)Export datatableprotected voidexportCells(DataTable table, Object document)protected StringgetColumnTag(UIColumn column)StringgetContentType()Content-type (MIME-type) excluding charset.StringgetFileExtension()File-extension of the exported file including a leading dot.protected voidpostRowExport(DataTable table, Object document)protected voidpreRowExport(DataTable table, Object document)-
Methods inherited from class org.primefaces.component.datatable.export.DataTableExporter
export, exportAll, exportColumnByFunction, exportPageOnly, exportRow, exportRow, exportSelectionOnly, exportValue, getColumnsToExport, getOutputStream, hasColumnFooter, postExport, preExport
-
-
-
-
Method Detail
-
doExport
public void doExport(javax.faces.context.FacesContext context, DataTable table, ExportConfiguration exportConfiguration, int index) throws IOExceptionDescription copied from class:DataTableExporterExport datatable- Specified by:
doExportin classDataTableExporter- Parameters:
context- faces contexttable- datatable to exportexportConfiguration- export configurationindex- datatable current index during export process- Throws:
IOException
-
getContentType
public String getContentType()
Description copied from interface:ExporterContent-type (MIME-type) excluding charset. (eg 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
-
getFileExtension
public String getFileExtension()
Description copied from interface:ExporterFile-extension of the exported file including a leading dot. (eg '.xlsx')
-
preRowExport
protected void preRowExport(DataTable table, Object document)
- Overrides:
preRowExportin classDataTableExporter
-
postRowExport
protected void postRowExport(DataTable table, Object document)
- Overrides:
postRowExportin classDataTableExporter
-
exportCells
protected void exportCells(DataTable table, Object document)
- Specified by:
exportCellsin classDataTableExporter
-
addColumnValue
protected void addColumnValue(PrintWriter writer, DataTable table, List<javax.faces.component.UIComponent> components, String tag, UIColumn column) throws IOException
- Throws:
IOException
-
-