org.primefaces.component.export
Class ExcelExporter

java.lang.Object
  extended by org.primefaces.component.export.Exporter
      extended by org.primefaces.component.export.ExcelExporter

public class ExcelExporter
extends Exporter


Nested Class Summary
 
Nested classes/interfaces inherited from class org.primefaces.component.export.Exporter
Exporter.ColumnType
 
Constructor Summary
ExcelExporter()
           
 
Method Summary
protected  void addColumnFacets(DataTable table, org.apache.poi.ss.usermodel.Sheet sheet, Exporter.ColumnType columnType)
           
protected  void addColumnValue(org.apache.poi.ss.usermodel.Row row, List<javax.faces.component.UIComponent> components)
           
protected  void addColumnValue(org.apache.poi.ss.usermodel.Row row, javax.faces.component.UIComponent component)
           
 void export(javax.faces.context.FacesContext context, DataTable table, String filename, boolean pageOnly, boolean selectionOnly, String encodingType, javax.el.MethodExpression preProcessor, javax.el.MethodExpression postProcessor)
           
protected  void exportCells(DataTable table, Object document)
           
protected  void writeExcelToResponse(javax.faces.context.ExternalContext externalContext, org.apache.poi.ss.usermodel.Workbook generatedExcel, String filename)
           
 
Methods inherited from class org.primefaces.component.export.Exporter
exportAll, exportPageOnly, exportRow, exportSelectionOnly, exportValue, getColumnsToExport, hasColumnFooter, postRowExport, preRowExport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcelExporter

public ExcelExporter()
Method Detail

export

public void export(javax.faces.context.FacesContext context,
                   DataTable table,
                   String filename,
                   boolean pageOnly,
                   boolean selectionOnly,
                   String encodingType,
                   javax.el.MethodExpression preProcessor,
                   javax.el.MethodExpression postProcessor)
            throws IOException
Specified by:
export in class Exporter
Throws:
IOException

exportCells

protected void exportCells(DataTable table,
                           Object document)
Specified by:
exportCells in class Exporter

addColumnFacets

protected void addColumnFacets(DataTable table,
                               org.apache.poi.ss.usermodel.Sheet sheet,
                               Exporter.ColumnType columnType)

addColumnValue

protected void addColumnValue(org.apache.poi.ss.usermodel.Row row,
                              javax.faces.component.UIComponent component)

addColumnValue

protected void addColumnValue(org.apache.poi.ss.usermodel.Row row,
                              List<javax.faces.component.UIComponent> components)

writeExcelToResponse

protected void writeExcelToResponse(javax.faces.context.ExternalContext externalContext,
                                    org.apache.poi.ss.usermodel.Workbook generatedExcel,
                                    String filename)
                             throws IOException
Throws:
IOException


Copyright © 2013. All rights reserved.