public class ExcelExporter extends Exporter
Exporter component.Exporter.ColumnTypeskipComponents| Constructor and Description |
|---|
ExcelExporter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addColumnAlignments(javax.faces.component.UIComponent component,
org.apache.poi.ss.usermodel.Cell cell) |
protected void |
addColumnFacets(org.primefaces.component.datatable.DataTable table,
org.apache.poi.ss.usermodel.Sheet sheet,
Exporter.ColumnType columnType) |
protected void |
addColumnFacets(org.primefaces.component.subtable.SubTable table,
org.apache.poi.ss.usermodel.Sheet sheet,
Exporter.ColumnType columnType) |
protected void |
addColumnValue(org.apache.poi.ss.usermodel.Row row,
java.util.List<javax.faces.component.UIComponent> components,
java.lang.String type) |
protected void |
addColumnValue(org.apache.poi.ss.usermodel.Row row,
javax.faces.component.UIComponent component,
java.lang.String type) |
protected void |
addFacetAlignments(javax.faces.component.UIComponent component,
org.apache.poi.ss.usermodel.Cell cell) |
protected void |
createCustomFonts() |
void |
customFormat(java.lang.String facetBackground,
java.lang.String facetFontSize,
java.lang.String facetFontColor,
java.lang.String facetFontStyle,
java.lang.String fontName,
java.lang.String cellFontSize,
java.lang.String cellFontColor,
java.lang.String cellFontStyle,
java.lang.String datasetPadding,
java.lang.String orientation) |
void |
export(javax.faces.event.ActionEvent event,
java.lang.String tableId,
javax.faces.context.FacesContext context,
java.lang.String filename,
java.lang.String tableTitle,
boolean pageOnly,
boolean selectionOnly,
java.lang.String encodingType,
javax.el.MethodExpression preProcessor,
javax.el.MethodExpression postProcessor,
boolean subTable) |
protected void |
exportAll(javax.faces.context.FacesContext context,
org.primefaces.component.datalist.DataList list,
org.apache.poi.ss.usermodel.Sheet sheet) |
protected void |
exportAll(javax.faces.context.FacesContext context,
org.primefaces.component.datatable.DataTable table,
org.apache.poi.ss.usermodel.Sheet sheet,
java.lang.Boolean subTable) |
protected void |
exportAll(javax.faces.context.FacesContext context,
org.primefaces.component.subtable.SubTable table,
org.apache.poi.ss.usermodel.Sheet sheet) |
protected void |
exportCells(org.primefaces.component.datalist.DataList list,
org.apache.poi.ss.usermodel.Sheet sheet) |
protected void |
exportCells(org.primefaces.component.datatable.DataTable table,
org.apache.poi.ss.usermodel.Sheet sheet) |
protected void |
exportCells(org.primefaces.component.subtable.SubTable table,
org.apache.poi.ss.usermodel.Sheet sheet) |
protected void |
exportPageOnly(javax.faces.context.FacesContext context,
org.primefaces.component.datalist.DataList list,
org.apache.poi.ss.usermodel.Sheet sheet) |
protected void |
exportPageOnly(javax.faces.context.FacesContext context,
org.primefaces.component.datatable.DataTable table,
org.apache.poi.ss.usermodel.Sheet sheet) |
protected void |
exportRow(org.primefaces.component.datalist.DataList list,
org.apache.poi.ss.usermodel.Sheet sheet,
int rowIndex) |
protected void |
exportRow(org.primefaces.component.datatable.DataTable table,
org.apache.poi.ss.usermodel.Sheet sheet,
int rowIndex) |
protected void |
exportRow(org.primefaces.component.subtable.SubTable table,
org.apache.poi.ss.usermodel.Sheet sheet,
int rowIndex) |
protected void |
exportSelectionOnly(javax.faces.context.FacesContext context,
org.primefaces.component.datatable.DataTable table,
org.apache.poi.ss.usermodel.Sheet sheet) |
protected void |
tableColumnGroup(org.apache.poi.ss.usermodel.Sheet sheet,
org.primefaces.component.datatable.DataTable table,
java.lang.String facetType) |
protected void |
tableColumnGroup(org.apache.poi.ss.usermodel.Sheet sheet,
org.primefaces.component.subtable.SubTable table,
java.lang.String facetType) |
protected void |
tableFacet(javax.faces.context.FacesContext context,
org.apache.poi.ss.usermodel.Sheet sheet,
org.primefaces.component.datalist.DataList list,
java.lang.String facetType) |
protected void |
tableFacet(javax.faces.context.FacesContext context,
org.apache.poi.ss.usermodel.Sheet sheet,
org.primefaces.component.datatable.DataTable table,
int columnCount,
java.lang.String facetType) |
protected void |
tableFacet(javax.faces.context.FacesContext context,
org.apache.poi.ss.usermodel.Sheet sheet,
org.primefaces.component.subtable.SubTable table,
int columnCount,
java.lang.String facetType) |
protected void |
writeExcelToResponse(javax.faces.context.ExternalContext externalContext,
org.apache.poi.ss.usermodel.Workbook generatedExcel,
java.lang.String filename) |
addColumnValues, exportFacetValue, exportValue, getColumnsCount, getColumnsCount, getColumnsToExport, hasFooterColumn, hasHeaderColumn, hasHeaderColumn, setSkipComponentspublic void export(javax.faces.event.ActionEvent event,
java.lang.String tableId,
javax.faces.context.FacesContext context,
java.lang.String filename,
java.lang.String tableTitle,
boolean pageOnly,
boolean selectionOnly,
java.lang.String encodingType,
javax.el.MethodExpression preProcessor,
javax.el.MethodExpression postProcessor,
boolean subTable)
throws java.io.IOException
protected void exportAll(javax.faces.context.FacesContext context,
org.primefaces.component.datatable.DataTable table,
org.apache.poi.ss.usermodel.Sheet sheet,
java.lang.Boolean subTable)
protected void exportAll(javax.faces.context.FacesContext context,
org.primefaces.component.subtable.SubTable table,
org.apache.poi.ss.usermodel.Sheet sheet)
protected void exportAll(javax.faces.context.FacesContext context,
org.primefaces.component.datalist.DataList list,
org.apache.poi.ss.usermodel.Sheet sheet)
protected void exportPageOnly(javax.faces.context.FacesContext context,
org.primefaces.component.datatable.DataTable table,
org.apache.poi.ss.usermodel.Sheet sheet)
protected void exportPageOnly(javax.faces.context.FacesContext context,
org.primefaces.component.datalist.DataList list,
org.apache.poi.ss.usermodel.Sheet sheet)
protected void exportSelectionOnly(javax.faces.context.FacesContext context,
org.primefaces.component.datatable.DataTable table,
org.apache.poi.ss.usermodel.Sheet sheet)
protected void tableFacet(javax.faces.context.FacesContext context,
org.apache.poi.ss.usermodel.Sheet sheet,
org.primefaces.component.datatable.DataTable table,
int columnCount,
java.lang.String facetType)
protected void tableFacet(javax.faces.context.FacesContext context,
org.apache.poi.ss.usermodel.Sheet sheet,
org.primefaces.component.subtable.SubTable table,
int columnCount,
java.lang.String facetType)
protected void tableFacet(javax.faces.context.FacesContext context,
org.apache.poi.ss.usermodel.Sheet sheet,
org.primefaces.component.datalist.DataList list,
java.lang.String facetType)
protected void tableColumnGroup(org.apache.poi.ss.usermodel.Sheet sheet,
org.primefaces.component.datatable.DataTable table,
java.lang.String facetType)
protected void tableColumnGroup(org.apache.poi.ss.usermodel.Sheet sheet,
org.primefaces.component.subtable.SubTable table,
java.lang.String facetType)
protected void exportRow(org.primefaces.component.datatable.DataTable table,
org.apache.poi.ss.usermodel.Sheet sheet,
int rowIndex)
protected void exportRow(org.primefaces.component.subtable.SubTable table,
org.apache.poi.ss.usermodel.Sheet sheet,
int rowIndex)
protected void exportRow(org.primefaces.component.datalist.DataList list,
org.apache.poi.ss.usermodel.Sheet sheet,
int rowIndex)
protected void exportCells(org.primefaces.component.datatable.DataTable table,
org.apache.poi.ss.usermodel.Sheet sheet)
protected void exportCells(org.primefaces.component.subtable.SubTable table,
org.apache.poi.ss.usermodel.Sheet sheet)
protected void exportCells(org.primefaces.component.datalist.DataList list,
org.apache.poi.ss.usermodel.Sheet sheet)
protected void addColumnFacets(org.primefaces.component.datatable.DataTable table,
org.apache.poi.ss.usermodel.Sheet sheet,
Exporter.ColumnType columnType)
protected void addColumnFacets(org.primefaces.component.subtable.SubTable table,
org.apache.poi.ss.usermodel.Sheet sheet,
Exporter.ColumnType columnType)
protected void addColumnValue(org.apache.poi.ss.usermodel.Row row,
javax.faces.component.UIComponent component,
java.lang.String type)
protected void addColumnValue(org.apache.poi.ss.usermodel.Row row,
java.util.List<javax.faces.component.UIComponent> components,
java.lang.String type)
protected void addColumnAlignments(javax.faces.component.UIComponent component,
org.apache.poi.ss.usermodel.Cell cell)
protected void addFacetAlignments(javax.faces.component.UIComponent component,
org.apache.poi.ss.usermodel.Cell cell)
public void customFormat(java.lang.String facetBackground,
java.lang.String facetFontSize,
java.lang.String facetFontColor,
java.lang.String facetFontStyle,
java.lang.String fontName,
java.lang.String cellFontSize,
java.lang.String cellFontColor,
java.lang.String cellFontStyle,
java.lang.String datasetPadding,
java.lang.String orientation)
customFormat in class Exporterprotected void createCustomFonts()
protected void writeExcelToResponse(javax.faces.context.ExternalContext externalContext,
org.apache.poi.ss.usermodel.Workbook generatedExcel,
java.lang.String filename)
throws java.io.IOException
java.io.IOExceptionCopyright © 2011-2015. All Rights Reserved.