Package | Description |
---|---|
org.apache.poi.hssf.usermodel |
usermodel package maps HSSF low level strutures to familiar workbook/sheet model
|
org.apache.poi.ss.usermodel | |
org.apache.poi.ss.usermodel.contrib | |
org.apache.poi.xssf.usermodel |
Modifier and Type | Class and Description |
---|---|
class |
HSSFCell
High level representation of a cell in a row of a spreadsheet.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Cell> |
HSSFRow.cellIterator() |
Modifier and Type | Method and Description |
---|---|
CellValue |
HSSFFormulaEvaluator.evaluate(Cell cell)
If cell contains a formula, the formula is evaluated and returned,
else the CellValue simply copies the appropriate cell value from
the cell and also its cell type.
|
int |
HSSFFormulaEvaluator.evaluateFormulaCell(Cell cell)
If cell contains formula, it evaluates the formula, and saves the result of the formula.
|
HSSFCell |
HSSFFormulaEvaluator.evaluateInCell(Cell cell)
If cell contains formula, it evaluates the formula, and
puts the formula result back into the cell, in place
of the old formula.
|
void |
HSSFFormulaEvaluator.notifyDeleteCell(Cell cell) |
void |
HSSFFormulaEvaluator.notifySetFormula(Cell cell)
Should be called to tell the cell value cache that the specified (value or formula) cell
has changed.
|
void |
HSSFRow.removeCell(Cell cell)
remove the HSSFCell from this row.
|
Modifier and Type | Method and Description |
---|---|
Cell |
Row.createCell(int column)
Use this to create new cells within the row and return it.
|
Cell |
Row.createCell(int column,
int type)
Use this to create new cells within the row and return it.
|
Cell |
FormulaEvaluator.evaluateInCell(Cell cell)
If cell contains formula, it evaluates the formula, and
puts the formula result back into the cell, in place
of the old formula.
|
Cell |
Row.getCell(int cellnum)
Get the cell representing a given column (logical cell) 0-based.
|
Cell |
Row.getCell(int cellnum,
Row.MissingCellPolicy policy)
Returns the cell at the given (0 based) index, with the specified
Row.MissingCellPolicy |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Cell> |
Row.cellIterator() |
Modifier and Type | Method and Description |
---|---|
java.text.Format |
DataFormatter.createFormat(Cell cell)
Create and return a Format based on the format string from a cell's
style.
|
CellValue |
FormulaEvaluator.evaluate(Cell cell)
If cell contains a formula, the formula is evaluated and returned,
else the CellValue simply copies the appropriate cell value from
the cell and also its cell type.
|
int |
FormulaEvaluator.evaluateFormulaCell(Cell cell)
If cell contains formula, it evaluates the formula,
and saves the result of the formula.
|
Cell |
FormulaEvaluator.evaluateInCell(Cell cell)
If cell contains formula, it evaluates the formula, and
puts the formula result back into the cell, in place
of the old formula.
|
java.lang.String |
DataFormatter.formatCellValue(Cell cell)
Returns the formatted value of a cell as a String regardless
of the cell type.
|
java.lang.String |
DataFormatter.formatCellValue(Cell cell,
FormulaEvaluator evaluator)
Returns the formatted value of a cell as a String regardless
of the cell type.
|
java.text.Format |
DataFormatter.getDefaultFormat(Cell cell)
Returns a default format for a cell.
|
static boolean |
DateUtil.isCellDateFormatted(Cell cell)
Check if a cell contains a date
Since dates are stored internally in Excel as double values
we infer it is a date if it is formatted as such.
|
static boolean |
DateUtil.isCellInternalDateFormatted(Cell cell)
Check if a cell contains a date, checking only for internal
excel date formats.
|
void |
FormulaEvaluator.notifyDeleteCell(Cell cell)
Should be called to tell the cell value cache that the specified cell has just become a
formula cell, or the formula text has changed
|
void |
FormulaEvaluator.notifySetFormula(Cell cell)
Should be called to tell the cell value cache that the specified (value or formula) cell
has changed.
|
void |
Row.removeCell(Cell cell)
Remove the Cell from this row.
|
Modifier and Type | Method and Description |
---|---|
static Cell |
CellUtil.createCell(Row row,
int column,
java.lang.String value)
Create a cell, and give it a value.
|
static Cell |
CellUtil.createCell(Row row,
int column,
java.lang.String value,
CellStyle style)
Creates a cell, gives it a value, and applies a style if provided
|
static Cell |
CellUtil.getCell(Row row,
int columnIndex)
Get a specific cell from a row.
|
static Cell |
CellUtil.translateUnicodeValues(Cell cell)
Looks for text in the cell that should be unicode, like α and provides the
unicode version of it.
|
Modifier and Type | Method and Description |
---|---|
static void |
CellUtil.setAlignment(Cell cell,
Workbook workbook,
short align)
Take a cell, and align it.
|
static void |
CellUtil.setCellStyleProperty(Cell cell,
Workbook workbook,
java.lang.String propertyName,
java.lang.Object propertyValue)
This method attempt to find an already existing CellStyle that matches what you want the
style to be.
|
static void |
CellUtil.setFont(Cell cell,
Workbook workbook,
Font font)
Take a cell, and apply a font to it
|
static Cell |
CellUtil.translateUnicodeValues(Cell cell)
Looks for text in the cell that should be unicode, like α and provides the
unicode version of it.
|
Modifier and Type | Class and Description |
---|---|
class |
XSSFCell
High level representation of a cell in a row of a spreadsheet.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Cell> |
XSSFRow.cellIterator()
Cell iterator over the physically defined cells:
|
java.util.Iterator<Cell> |
XSSFRow.iterator()
Alias for
XSSFRow.cellIterator() to allow foreach loops:
|
Modifier and Type | Method and Description |
---|---|
CellValue |
XSSFFormulaEvaluator.evaluate(Cell cell)
If cell contains a formula, the formula is evaluated and returned,
else the CellValue simply copies the appropriate cell value from
the cell and also its cell type.
|
int |
XSSFFormulaEvaluator.evaluateFormulaCell(Cell cell)
If cell contains formula, it evaluates the formula,
and saves the result of the formula.
|
XSSFCell |
XSSFFormulaEvaluator.evaluateInCell(Cell cell)
If cell contains formula, it evaluates the formula, and
puts the formula result back into the cell, in place
of the old formula.
|
void |
XSSFFormulaEvaluator.notifyDeleteCell(Cell cell) |
void |
XSSFFormulaEvaluator.notifySetFormula(Cell cell) |
void |
XSSFRow.removeCell(Cell cell)
Remove the Cell from this row.
|
Copyright 2014 The Apache Software Foundation or its licensors, as applicable.