Class TreeTableExcelExporter
java.lang.Object
org.primefaces.component.export.TableExporter<TreeTable,P,O>
org.primefaces.component.treetable.export.TreeTableExporter<org.apache.poi.ss.usermodel.Workbook,ExcelOptions>
org.primefaces.component.treetable.export.TreeTableExcelExporter
- Direct Known Subclasses:
TreeTableExcelXExporter
public class TreeTableExcelExporter
extends TreeTableExporter<org.apache.poi.ss.usermodel.Workbook,ExcelOptions>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.primefaces.component.export.TableExporter
TableExporter.ColumnType, TableExporter.FacetType -
Field Summary
Fields inherited from class org.primefaces.component.export.TableExporter
ALL_FACETS, document, exportConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyOptions(org.apache.poi.ss.usermodel.Sheet sheet) protected voidautoSizeColumn(TreeTable table, org.apache.poi.ss.usermodel.Sheet sheet) protected intcalculateColumnOffset(org.apache.poi.ss.usermodel.Sheet sheet, int row, int col) protected org.apache.poi.ss.usermodel.WorkbookcreateDocument(javax.faces.context.FacesContext context) protected org.apache.poi.ss.usermodel.SheetcreateSheet(javax.faces.context.FacesContext context, TreeTable table, int index) protected voidexportCellValue(javax.faces.context.FacesContext context, TreeTable table, UIColumn col, String text, int i) protected voidexportColumnFacetValue(javax.faces.context.FacesContext context, TreeTable table, String text, int index) protected voidexportColumnGroupFacetValue(javax.faces.context.FacesContext context, TreeTable table, UIColumn column, AtomicInteger colIndex, String text) protected voidexportTable(javax.faces.context.FacesContext context, TreeTable table, int index) protected voidexportTabletFacetValue(javax.faces.context.FacesContext context, TreeTable table, String textValue) Content-type (MIME-type) excluding charset.File-extension of the exported file including a leading dot.getSheetName(javax.faces.context.FacesContext context, javax.faces.component.UIComponent table, int index) protected voidpostExport(javax.faces.context.FacesContext context) protected voidpreExport(javax.faces.context.FacesContext context) protected voidpreRowExport(javax.faces.context.FacesContext context, TreeTable table) protected org.apache.poi.ss.usermodel.Rowrow()protected org.apache.poi.ss.usermodel.Sheetsheet()Methods inherited from class org.primefaces.component.treetable.export.TreeTableExporter
exportAll, exportPageOnly, exportRow, exportSelectionOnly, getTreeRowCount, traverseTree, traverseTreeMethods inherited from class org.primefaces.component.export.TableExporter
addCells, addColumnFacets, addColumnGroupFacets, addTableFacets, export, getExportableColumns, getOnTableRenderArgs, options, os, postRowExport
-
Constructor Details
-
TreeTableExcelExporter
public TreeTableExcelExporter()
-
-
Method Details
-
preExport
- Overrides:
preExportin classTableExporter<TreeTable,org.apache.poi.ss.usermodel.Workbook, ExcelOptions> - Throws:
IOException
-
createDocument
protected org.apache.poi.ss.usermodel.Workbook createDocument(javax.faces.context.FacesContext context) throws IOException - Specified by:
createDocumentin classTableExporter<TreeTable,org.apache.poi.ss.usermodel.Workbook, ExcelOptions> - Throws:
IOException
-
exportTable
protected void exportTable(javax.faces.context.FacesContext context, TreeTable table, int index) throws IOException - Overrides:
exportTablein classTableExporter<TreeTable,org.apache.poi.ss.usermodel.Workbook, ExcelOptions> - Throws:
IOException
-
preRowExport
- Overrides:
preRowExportin classTableExporter<TreeTable,org.apache.poi.ss.usermodel.Workbook, ExcelOptions>
-
postExport
- Overrides:
postExportin classTableExporter<TreeTable,org.apache.poi.ss.usermodel.Workbook, ExcelOptions> - Throws:
IOException
-
exportTabletFacetValue
protected void exportTabletFacetValue(javax.faces.context.FacesContext context, TreeTable table, String textValue) - Overrides:
exportTabletFacetValuein classTableExporter<TreeTable,org.apache.poi.ss.usermodel.Workbook, ExcelOptions>
-
exportColumnFacetValue
protected void exportColumnFacetValue(javax.faces.context.FacesContext context, TreeTable table, String text, int index) - Overrides:
exportColumnFacetValuein classTableExporter<TreeTable,org.apache.poi.ss.usermodel.Workbook, ExcelOptions>
-
exportCellValue
protected void exportCellValue(javax.faces.context.FacesContext context, TreeTable table, UIColumn col, String text, int i) - Specified by:
exportCellValuein classTableExporter<TreeTable,org.apache.poi.ss.usermodel.Workbook, ExcelOptions>
-
exportColumnGroupFacetValue
protected void exportColumnGroupFacetValue(javax.faces.context.FacesContext context, TreeTable table, UIColumn column, AtomicInteger colIndex, String text) - Overrides:
exportColumnGroupFacetValuein classTableExporter<TreeTable,org.apache.poi.ss.usermodel.Workbook, ExcelOptions>
-
getContentType
Description copied from interface:ExporterContent-type (MIME-type) excluding charset. (eg 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') -
getFileExtension
Description copied from interface:ExporterFile-extension of the exported file including a leading dot. (eg '.xlsx') -
autoSizeColumn
-
calculateColumnOffset
protected int calculateColumnOffset(org.apache.poi.ss.usermodel.Sheet sheet, int row, int col) -
createSheet
protected org.apache.poi.ss.usermodel.Sheet createSheet(javax.faces.context.FacesContext context, TreeTable table, int index) -
applyOptions
protected void applyOptions(org.apache.poi.ss.usermodel.Sheet sheet) -
getSheetName
public String getSheetName(javax.faces.context.FacesContext context, javax.faces.component.UIComponent table, int index) -
row
protected org.apache.poi.ss.usermodel.Row row() -
sheet
protected org.apache.poi.ss.usermodel.Sheet sheet()
-