|
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.HssfAggregateTableUtils
HssfTableUtils
@Deprecated public class HssfAggregateTableUtils
HssfAggregateTableUtils
is a class that has methods to export any AggregateTable's content to Excel file
format using POI. You can find more information about POI at http://poi.apache.org/spreadsheet/index.html.
HssfTableUtils.CLIENT_PROPERTY_EXCEL_OUTPUT_FORMAT
for the target
AggregateTable 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.
Constructor Summary | |
---|---|
HssfAggregateTableUtils()
Deprecated. |
Method Summary | |
---|---|
static boolean |
export(AggregateTable table,
int firstRow,
int firstColumn,
int numberOfRows,
int numberOfColumns,
String fileName,
String sheetName,
boolean append,
boolean includeTableHeader,
HssfTableUtils.CellValueConverter converter)
Deprecated. Exports the AggregateTable to an Excel file. |
static boolean |
export(AggregateTable table,
OutputStream out,
int firstRow,
int firstColumn,
int numberOfRows,
int numberOfColumns,
String sheetName,
boolean includeTableHeader,
HssfTableUtils.CellValueConverter cellValueConverter)
Deprecated. Exports the AggregateTable to as Excel file output steam. |
static boolean |
export(AggregateTable table,
OutputStream out,
int firstRow,
int firstColumn,
int numberOfRows,
int numberOfColumns,
String sheetName,
boolean includeTableHeader,
HssfTableUtils.CellValueConverter cellValueConverter,
StringConverter columnNameConverter)
Deprecated. Exports the AggregateTable to as Excel file output steam. |
static boolean |
export(AggregateTable table,
OutputStream out,
String sheetName)
Deprecated. Exports the AggregateTable to as Excel file output steam. |
static boolean |
export(AggregateTable table,
OutputStream out,
String sheetName,
boolean includeTableHeader)
Deprecated. Exports the AggregateTable to as Excel file output steam. |
static boolean |
export(AggregateTable table,
OutputStream out,
String sheetName,
boolean includeTableHeader,
HssfTableUtils.CellValueConverter converter)
Deprecated. Exports the AggregateTable to as Excel file output steam. |
static boolean |
export(AggregateTable table,
String fileName,
String sheetName,
boolean append)
Deprecated. Exports the AggregateTable to an Excel file. |
static boolean |
export(AggregateTable table,
String fileName,
String sheetName,
boolean append,
boolean includeTableHeader)
Deprecated. Exports the AggregateTable to an Excel file. |
static boolean |
export(AggregateTable table,
String fileName,
String sheetName,
boolean append,
boolean includeTableHeader,
HssfTableUtils.CellValueConverter converter)
Deprecated. Exports the AggregateTable to an Excel file. |
static void |
exportToCell(Sheet sheet,
int rowIndex,
int columnIndex,
Object value)
Deprecated. Exports a value to a particular cell in the sheet. |
static void |
exportToSheet(AggregateTable table,
int firstRow,
int firstColumn,
int numberOfRows,
int numberOfColumns,
Workbook wb,
Sheet sheet,
int startRow,
int startColumn,
boolean includeTableHeader,
HssfTableUtils.CellValueConverter cellValueConverter)
Deprecated. Exports the AggregateTable to the specified location of an Excel sheet. |
static void |
exportToSheet(AggregateTable table,
int firstRow,
int firstColumn,
int numberOfRows,
int numberOfColumns,
Workbook wb,
Sheet sheet,
int startRow,
int startColumn,
boolean includeTableHeader,
HssfTableUtils.CellValueConverter cellValueConverter,
StringConverter columnNameConverter)
Deprecated. Exports the AggregateTable to the specified location of an Excel sheet. |
static void |
exportToSheet(AggregateTable table,
Workbook wb,
Sheet sheet,
HssfTableFormat format)
Deprecated. Exports the AggregateTable to the specified location of an Excel sheet. |
static void |
exportToSheet(AggregateTable table,
Workbook wb,
Sheet sheet,
int startRow,
int startColumn)
Deprecated. Exports the AggregateTable to the specified location of an Excel sheet. |
static void |
exportToSheet(AggregateTable table,
Workbook wb,
Sheet sheet,
int startRow,
int startColumn,
boolean includeTableHeader)
Deprecated. Exports the AggregateTable to the specified location of an Excel sheet. |
static void |
exportToSheet(AggregateTable table,
Workbook wb,
Sheet sheet,
int startRow,
int startColumn,
boolean includeTableHeader,
HssfTableUtils.CellValueConverter converter)
Deprecated. Exports the AggregateTable to the specified location of an Excel sheet. |
static void |
exportToSheet(AggregateTable table,
Workbook wb,
Sheet sheet,
int startRow,
int startColumn,
boolean includeTableHeader,
HssfTableUtils.CellValueConverter converter,
StringConverter columnNameConverter)
Deprecated. Exports the AggregateTable to the specified location of an Excel sheet. |
static void |
exportToSheet(AggregateTable table,
Workbook wb,
Sheet sheet,
int startRow,
int startColumn,
HssfTableUtils.CellValueConverter converter)
Deprecated. Exports the AggregateTable to the specified location of an Excel sheet. |
static boolean |
isHssfInstalled()
Deprecated. Check if poi.jar is in the classpath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HssfAggregateTableUtils()
Method Detail |
---|
public static boolean isHssfInstalled()
export
methods in this util called this method first
before continuing.
public static boolean export(AggregateTable table, String fileName, String sheetName, boolean append) throws IOException
table
- the AggregateTable to be exported.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 the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(AggregateTable table, String fileName, String sheetName, boolean append, boolean includeTableHeader) throws IOException
table
- the AggregateTable to be exported.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.includeTableHeader
- whether to include the table header.
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(AggregateTable table, String fileName, String sheetName, boolean append, boolean includeTableHeader, HssfTableUtils.CellValueConverter converter) throws IOException
table
- the AggregateTable to be exported.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.includeTableHeader
- whether to include the table header.converter
- the converter to convert cell value to the value that can be set to Excel cell.
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(AggregateTable table, int firstRow, int firstColumn, int numberOfRows, int numberOfColumns, String fileName, String sheetName, boolean append, boolean includeTableHeader, HssfTableUtils.CellValueConverter converter) throws IOException
table
- the AggregateTable to be exported.firstRow
- the first row to be exportedfirstColumn
- the first row to be exportednumberOfRows
- number of rows to be exported, -1 means all rows.numberOfColumns
- number of columns to be exported. -1 means all columns.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.includeTableHeader
- whether to include the table header.converter
- the converter to convert cell value to the value that can be set to Excel cell.
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(AggregateTable table, OutputStream out, String sheetName) throws IOException
table
- the AggregateTable to be exported.out
- the output streamsheetName
- the worksheet name.
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(AggregateTable table, OutputStream out, String sheetName, boolean includeTableHeader) throws IOException
table
- the AggregateTable to be exported.out
- the output streamsheetName
- the worksheet name.includeTableHeader
- whether to include the table header.
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(AggregateTable table, OutputStream out, String sheetName, boolean includeTableHeader, HssfTableUtils.CellValueConverter converter) throws IOException
table
- the AggregateTable to be exported.out
- the output streamsheetName
- the worksheet name.includeTableHeader
- whether to include the table header.converter
- the converter to convert cell value to the value that can be set to Excel cell.
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(AggregateTable table, OutputStream out, int firstRow, int firstColumn, int numberOfRows, int numberOfColumns, String sheetName, boolean includeTableHeader, HssfTableUtils.CellValueConverter cellValueConverter) throws IOException
table
- the AggregateTable to be exported.out
- the output streamfirstRow
- the first row to be exportedfirstColumn
- the first row to be exportednumberOfRows
- number of rows to be exported, -1 means all rows.numberOfColumns
- number of columns to be exported. -1 means all columns.sheetName
- the worksheet name.includeTableHeader
- whether to include the table header.cellValueConverter
- the converter to convert cell value to the value that can be set to Excel cell.
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(AggregateTable table, OutputStream out, int firstRow, int firstColumn, int numberOfRows, int numberOfColumns, String sheetName, boolean includeTableHeader, HssfTableUtils.CellValueConverter cellValueConverter, StringConverter columnNameConverter) throws IOException
table
- the AggregateTable to be exported.out
- the output streamfirstRow
- the first row to be exportedfirstColumn
- the first row to be exportednumberOfRows
- number of rows to be exported, -1 means all rows.numberOfColumns
- number of columns to be exported. -1 means all columns.sheetName
- the worksheet name.includeTableHeader
- whether to include the table header.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 the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static void exportToSheet(AggregateTable table, Workbook wb, Sheet sheet, int startRow, int startColumn)
table
- the AggregateTable to be exported.wb
- the Workbooksheet
- the worksheetstartRow
- the starting row. The first cell of the table will appear at this row index.startColumn
- the starting column. The first cell of the table will appear at this row index.public static void exportToSheet(AggregateTable table, Workbook wb, Sheet sheet, int startRow, int startColumn, HssfTableUtils.CellValueConverter converter)
table
- the AggregateTable to be exported.wb
- the Workbooksheet
- the worksheetstartRow
- the starting row. The first cell of the table will appear at this row index.startColumn
- the starting column. The first cell of the table will appear at this row index.converter
- the converter to convert cell value to the value that can be set to Excel cell.public static void exportToSheet(AggregateTable table, Workbook wb, Sheet sheet, int startRow, int startColumn, boolean includeTableHeader)
table
- the AggregateTable to be exported.wb
- the Workbooksheet
- the worksheetstartRow
- the starting row. The first cell of the table will appear at this row index.startColumn
- the starting column. The first cell of the table will appear at this row index.includeTableHeader
- whether to include the table header.public static void exportToSheet(AggregateTable table, Workbook wb, Sheet sheet, int startRow, int startColumn, boolean includeTableHeader, HssfTableUtils.CellValueConverter converter)
table
- the AggregateTable to be exported.wb
- the Workbooksheet
- the worksheetstartRow
- the starting row. The first cell of the table will appear at this row index.startColumn
- the starting column. The first cell of the table will appear at this row index.includeTableHeader
- whether to include the table header.converter
- the converter to convert cell value to the value that can be set to Excel cell.public static void exportToSheet(AggregateTable table, Workbook wb, Sheet sheet, int startRow, int startColumn, boolean includeTableHeader, HssfTableUtils.CellValueConverter converter, StringConverter columnNameConverter)
table
- the AggregateTable to be exported.wb
- the Workbooksheet
- the worksheetstartRow
- the starting row. The first cell of the table will appear at this row index.startColumn
- the starting column. The first cell of the table will appear at this row index.includeTableHeader
- whether to include the table header.converter
- the converter to convert cell value to the value that can be set to Excel cell.columnNameConverter
- the converter to convert the column name.public static void exportToSheet(AggregateTable table, int firstRow, int firstColumn, int numberOfRows, int numberOfColumns, Workbook wb, Sheet sheet, int startRow, int startColumn, boolean includeTableHeader, HssfTableUtils.CellValueConverter cellValueConverter)
table
- the AggregateTable to be exported.firstRow
- the first row to be exportedfirstColumn
- the first row to be exportednumberOfRows
- number of rows to be exported, -1 means all rows.numberOfColumns
- number of columns to be exported. -1 means all columns.wb
- the Workbooksheet
- the worksheetstartRow
- the starting row. The first cell of the table will appear at this row index.startColumn
- the starting column. The first cell of the table will appear at this row index.includeTableHeader
- whether to include the table header.cellValueConverter
- the converter to convert cell value to the value that can be set to Excel cell.public static void exportToSheet(AggregateTable table, int firstRow, int firstColumn, int numberOfRows, int numberOfColumns, Workbook wb, Sheet sheet, int startRow, int startColumn, boolean includeTableHeader, HssfTableUtils.CellValueConverter cellValueConverter, StringConverter columnNameConverter)
table
- the AggregateTable to be exported.firstRow
- the first row to be exportedfirstColumn
- the first row to be exportednumberOfRows
- number of rows to be exported, -1 means all rows.numberOfColumns
- number of columns to be exported. -1 means all columns.wb
- the Workbooksheet
- the worksheetstartRow
- the starting row. The first cell of the table will appear at this row index.startColumn
- the starting column. The first cell of the table will appear at this row index.includeTableHeader
- whether to include the table header.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.public static void exportToSheet(AggregateTable table, Workbook wb, Sheet sheet, HssfTableFormat format)
table
- the AggregateTable to be exported.wb
- the Workbooksheet
- the worksheetformat
- HssfTableFormat instance which stores every single information needed for exporting to sheetpublic static void exportToCell(Sheet sheet, int rowIndex, int columnIndex, Object value)
sheet
- the worksheetrowIndex
- the row index of the cellcolumnIndex
- the column index of the cellvalue
- the value
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |