|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.hssf.HssfTableUtils com.jidesoft.hssf.HssfPivotTableUtils
public class HssfPivotTableUtils
HssfPivotTableUtils
is a class that has methods to export PivotTablePane to Excel file format using POI
and keep the pivot table layout.
HssfTableUtils.CLIENT_PROPERTY_EXCEL_OUTPUT_FORMAT
for the target PivotTablePane before you
invoke this method so that you can choose the output format. If you didn't set the client property, we will use
office2003 format for backward compatibility concern.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jidesoft.hssf.HssfTableUtils |
---|
HssfTableUtils.CellValueConverter, HssfTableUtils.ContextSensitiveCellValueConverter, HssfTableUtils.DefaultCellValueConverter, HssfTableUtils.POICustomizer |
Field Summary |
---|
Fields inherited from class com.jidesoft.hssf.HssfTableUtils |
---|
CLIENT_PROPERTY_EXCEL_OUTPUT_FORMAT, CLIENT_PROPERTY_FLUSH_ROWS, CLIENT_PROPERTY_USE_SXSSF_WORKBOOK, EXCEL_OUTPUT_FORMAT_2003, EXCEL_OUTPUT_FORMAT_2007 |
Constructor Summary | |
---|---|
HssfPivotTableUtils()
|
Method Summary | |
---|---|
static boolean |
export(PivotTablePane pane,
OutputStream out,
String sheetName)
Exports the pivot table to Excel file as an output steam. |
static boolean |
export(PivotTablePane pane,
OutputStream out,
String sheetName,
HssfTableUtils.CellValueConverter converter)
Exports the pivot table to Excel file. |
static boolean |
export(PivotTablePane pane,
OutputStream out,
String sheetName,
HssfTableUtils.CellValueConverter converter,
boolean freezePanes)
Exports the pivot table to Excel file. |
static boolean |
export(PivotTablePane pane,
String fileName,
String sheetName,
boolean append)
Exports the pivot table to Excel file. |
static boolean |
export(PivotTablePane pane,
String fileName,
String sheetName,
boolean append,
HssfTableFormat format)
Exports the pivot table to Excel file. |
static boolean |
export(PivotTablePane pane,
String fileName,
String sheetName,
boolean append,
HssfTableUtils.CellValueConverter converter)
Exports the pivot table to Excel file. |
static boolean |
export(PivotTablePane pane,
String fileName,
String sheetName,
boolean append,
HssfTableUtils.CellValueConverter converter,
boolean freezePanes)
Exports the pivot table to Excel file. |
static void |
exportToWorkbook(Workbook wb,
String sheetName,
PivotTablePane pane,
HssfTableFormat format)
Export the PivotTablePane to a Workbook. |
Methods inherited from class com.jidesoft.hssf.HssfTableUtils |
---|
export, export, export, export, export, export, export, export, export, export, export, export, exportToCell, exportToSheet, exportToSheet, exportToSheet, exportToSheet, exportToSheet, exportToSheet, exportToSheet, exportToSheet, isHssfInstalled, isXssfInstalled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HssfPivotTableUtils()
Method Detail |
---|
public static boolean export(PivotTablePane pane, String fileName, String sheetName, boolean append) throws IOException
pane
- the PivotTablePane
.fileName
- the Excel file name. It should be the full path to the file.sheetName
- the worksheet name.append
- whether it appends to the existing Excel file or it creates a new Excel file.
IOException
- if if an I/O error occurs when writing to the file.public static boolean export(PivotTablePane pane, String fileName, String sheetName, boolean append, HssfTableUtils.CellValueConverter converter) throws IOException
pane
- the PivotTablePane
.fileName
- the Excel file name. It should be the full path to the file.sheetName
- the worksheet name.append
- whether it appends to the existing Excel file or it creates a new Excel file.converter
- the converter to converts cell value to the value that can be set to Excel cell. Please note,
this converter is only used to convert the cell in the data area, not any cells in row header or
column header area.
IOException
- if if an I/O error occurs when writing to the file.public static boolean export(PivotTablePane pane, String fileName, String sheetName, boolean append, HssfTableUtils.CellValueConverter converter, boolean freezePanes) throws IOException
pane
- the PivotTablePane
.fileName
- the Excel file name. It should be the full path to the file.sheetName
- the worksheet name.append
- whether it appends to the existing Excel file or it creates a new Excel file.converter
- the converter to converts cell value to the value that can be set to Excel cell. Please note,
this converter is only used to convert the cell in the data area, not any cells in row header
or column header area.freezePanes
- true to freeze the header areas. It means the header areas will stay when scroll horizontally
and vertically.
IOException
- if if an I/O error occurs when writing to the file.public static boolean export(PivotTablePane pane, String fileName, String sheetName, boolean append, HssfTableFormat format) throws IOException
pane
- the PivotTablePane
.fileName
- the Excel file name. It should be the full path to the file.sheetName
- the worksheet name.append
- whether it appends to the existing Excel file or it creates a new Excel file.format
- HssfTableFormat instance which stores every single information needed for exporting to sheet.
IOException
- if if an I/O error occurs when writing to the file.public static boolean export(PivotTablePane pane, OutputStream out, String sheetName) throws IOException
pane
- the PivotTablePane
.out
- the output streamsheetName
- the worksheet name.
IOException
- if if an I/O error occurs when writing to the OutputStream.public static boolean export(PivotTablePane pane, OutputStream out, String sheetName, HssfTableUtils.CellValueConverter converter) throws IOException
pane
- the PivotTablePane
.out
- the output streamsheetName
- the worksheet name.converter
- the converter to converts cell value to the value that can be set to Excel cell.
IOException
- if if an I/O error occurs when writing to the OutputStream.public static boolean export(PivotTablePane pane, OutputStream out, String sheetName, HssfTableUtils.CellValueConverter converter, boolean freezePanes) throws IOException
pane
- the PivotTablePane
.out
- the output streamsheetName
- the worksheet name.converter
- the converter to converts cell value to the value that can be set to Excel cell.freezePanes
- true to freeze the header areas. It means the header areas will stay when scroll horizontally
and vertically.
IOException
- if if an I/O error occurs when writing to the OutputStream.public static void exportToWorkbook(Workbook wb, String sheetName, PivotTablePane pane, HssfTableFormat format)
wb
- the Workbook instancesheetName
- the sheet namepane
- the PivotTablePane to be exportedformat
- the format to define how the PivotTablePane should be exported
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |