|
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.HssfTableScrollPaneUtils
public class HssfTableScrollPaneUtils
HssfTableScrollPaneUtils
is a class that has methods to export TableScrollPane to Excel (.xls) file
format using HSSF-POI.
HssfTableUtils.CLIENT_PROPERTY_EXCEL_OUTPUT_FORMAT
for the target TableScrollPane 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 | |
---|---|
HssfTableScrollPaneUtils()
|
Method Summary | |
---|---|
static boolean |
export(TableScrollPane table,
OutputStream out,
int firstRow,
int firstColumn,
int numberOfRows,
int numberOfColumns,
String sheetName,
HssfTableUtils.CellValueConverter converter)
Exports the pivot table to Excel file. |
static boolean |
export(TableScrollPane table,
OutputStream out,
int firstRow,
int firstColumn,
int numberOfRows,
int numberOfColumns,
String sheetName,
HssfTableUtils.CellValueConverter cellValueConverter,
StringConverter columnNameConverter)
Exports the pivot table to Excel file. |
static boolean |
export(TableScrollPane table,
OutputStream out,
int firstRow,
int firstColumn,
int numberOfRows,
int numberOfColumns,
String sheetName,
HssfTableUtils.CellValueConverter cellValueConverter,
StringConverter columnNameConverter,
HssfTableUtils.POICustomizer customizer)
Exports the pivot table to Excel file. |
static boolean |
export(TableScrollPane table,
OutputStream out,
String sheetName)
Exports the pivot table to Excel file as an output steam. |
static boolean |
export(TableScrollPane table,
OutputStream out,
String sheetName,
HssfTableUtils.CellValueConverter converter)
Exports the pivot table to Excel file. |
static boolean |
export(TableScrollPane table,
String fileName,
String sheetName,
boolean append)
Exports the TableScrollPane to Excel file. |
static boolean |
export(TableScrollPane table,
String fileName,
String sheetName,
boolean append,
HssfTableUtils.CellValueConverter converter)
Exports the pivot table to Excel file. |
static boolean |
export(TableScrollPane table,
String fileName,
String sheetName,
boolean append,
HssfTableUtils.CellValueConverter cellValueConverter,
StringConverter columnNameConverter)
Exports the pivot table to Excel file. |
static boolean |
export(TableScrollPane table,
String fileName,
String sheetName,
boolean append,
HssfTableUtils.CellValueConverter cellValueConverter,
StringConverter columnNameConverter,
HssfTableUtils.POICustomizer customizer)
Exports the pivot table to Excel file. |
static Sheet |
exportToSheet(Workbook wb,
String sheetName,
TableScrollPane pane,
HssfTableFormat format)
Export TableScrollPane to sheet. |
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 HssfTableScrollPaneUtils()
Method Detail |
---|
public static boolean export(TableScrollPane table, String fileName, String sheetName, boolean append) throws IOException
table
- the TableScrollPane
.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(TableScrollPane table, String fileName, String sheetName, boolean append, HssfTableUtils.CellValueConverter converter) throws IOException
table
- the TableScrollPane
.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(TableScrollPane table, String fileName, String sheetName, boolean append, HssfTableUtils.CellValueConverter cellValueConverter, StringConverter columnNameConverter) throws IOException
table
- the TableScrollPane
.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.cellValueConverter
- 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.columnNameConverter
- the converter to convert the column name.
IOException
- if if an I/O error occurs when writing to the file.public static boolean export(TableScrollPane table, String fileName, String sheetName, boolean append, HssfTableUtils.CellValueConverter cellValueConverter, StringConverter columnNameConverter, HssfTableUtils.POICustomizer customizer) throws IOException
table
- the TableScrollPane
.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.cellValueConverter
- the cellValueConverter to converts cell value to the value that can be set to Excel cell. Please note,
this cellValueConverter is only used to convert the cell in the data area, not any cells in row header or
column header area.columnNameConverter
- the converter to convert the column name.customizer
- the customizer to customize a POI cell and the entire sheet.
IOException
- if if an I/O error occurs when writing to the file.public static boolean export(TableScrollPane table, OutputStream out, String sheetName) throws IOException
table
- the TableScrollPane
.out
- the output streamsheetName
- the worksheet name.
IOException
- if if an I/O error occurs when writing to the OutputStream.public static boolean export(TableScrollPane table, OutputStream out, String sheetName, HssfTableUtils.CellValueConverter converter) throws IOException
table
- the TableScrollPane
.out
- the output streamsheetName
- the worksheet name.converter
- the converter to convert 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(TableScrollPane table, OutputStream out, int firstRow, int firstColumn, int numberOfRows, int numberOfColumns, String sheetName, HssfTableUtils.CellValueConverter converter) throws IOException
table
- the TableScrollPane
.out
- the output streamfirstRow
- the first row in TableScrollPane to be exportedfirstColumn
- the first column in TableScrollPane to be exportednumberOfRows
- the row count in TableScrollPane to be exportednumberOfColumns
- the column count in TableScrollPane to be exportedsheetName
- the worksheet name.converter
- the converter to convert 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(TableScrollPane table, OutputStream out, int firstRow, int firstColumn, int numberOfRows, int numberOfColumns, String sheetName, HssfTableUtils.CellValueConverter cellValueConverter, StringConverter columnNameConverter) throws IOException
table
- the TableScrollPane
.out
- the output streamfirstRow
- the first row in TableScrollPane to be exportedfirstColumn
- the first column in TableScrollPane to be exportednumberOfRows
- the row count in TableScrollPane to be exportednumberOfColumns
- the column count in TableScrollPane to be exportedsheetName
- the worksheet name.cellValueConverter
- the converter to convert cell value to the value that can be set to Excel cell.columnNameConverter
- the converter to convert the column name.
IOException
- if if an I/O error occurs when writing to the OutputStream.public static boolean export(TableScrollPane table, OutputStream out, int firstRow, int firstColumn, int numberOfRows, int numberOfColumns, String sheetName, HssfTableUtils.CellValueConverter cellValueConverter, StringConverter columnNameConverter, HssfTableUtils.POICustomizer customizer) throws IOException
table
- the TableScrollPane
.out
- the output streamfirstRow
- the first row in TableScrollPane to be exportedfirstColumn
- the first column in TableScrollPane to be exportednumberOfRows
- the row count in TableScrollPane to be exportednumberOfColumns
- the column count in TableScrollPane to be exportedsheetName
- the worksheet name.cellValueConverter
- the converter to convert cell value to the value that can be set to Excel cell.columnNameConverter
- the converter to convert the column name.customizer
- the customizer to customize a POI cell and the entire sheet.
IOException
- if if an I/O error occurs when writing to the OutputStream.public static Sheet exportToSheet(Workbook wb, String sheetName, TableScrollPane pane, HssfTableFormat format)
wb
- the workbooksheetName
- the sheet namepane
- the table scroll paneformat
- the output format
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |