Java org.apache.poi.ss.usermodel Cell fields, constructors, methods, implement or subclass

Example usage for Java org.apache.poi.ss.usermodel Cell fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.poi.ss.usermodel Cell.

The text is from its open source code.

Subclass

org.apache.poi.ss.usermodel.Cell has subclasses.
Click this link to see all its subclasses.

Implementation

org.apache.poi.ss.usermodel.Cell has the following implementations.
Click this link to see all its implementation.

Method

CellAddressgetAddress()
Gets the address of this cell
booleangetBooleanCellValue()
Get the value of the cell as a boolean.
CellTypegetCachedFormulaResultType()
Only valid for formula cells Will return CellType in a future version of POI.
CellTypegetCachedFormulaResultTypeEnum()
Only valid for formula cells
CommentgetCellComment()
Returns comment associated with this cell
StringgetCellFormula()
Return a formula for the cell, for example, SUM(C4:E4)
CellStylegetCellStyle()
Return the cell's style.
CellTypegetCellType()
Return the cell type.
CellTypegetCellTypeEnum()
Return the cell type.
intgetColumnIndex()
Returns column index of this cell
DategetDateCellValue()
Get the value of the cell as a date.
bytegetErrorCellValue()
Get the value of the cell as an error code.
HyperlinkgetHyperlink()
doublegetNumericCellValue()
Get the value of the cell as a number.
RichTextStringgetRichStringCellValue()
Get the value of the cell as a XSSFRichTextString

For numeric cells we throw an exception.

RowgetRow()
Returns the Row this cell belongs to
intgetRowIndex()
Returns row index of a row in the sheet that contains this cell
SheetgetSheet()
Returns the sheet this cell belongs to
StringgetStringCellValue()
Get the value of the cell as a string

For numeric cells we throw an exception.

booleanisPartOfArrayFormulaGroup()
voidremoveCellComment()
Removes the comment for this cell, if there is one.
voidsetAsActiveCell()
Sets this cell as the active cell for the worksheet
voidsetCellComment(Comment comment)
Assign a comment to this cell
voidsetCellErrorValue(byte value)
Set a error value for the cell
voidsetCellFormula(String formula)
Sets formula for this cell.
voidsetCellStyle(CellStyle style)

Set the style for the cell.

voidsetCellType(CellType cellType)
Set the cells type (blank, numeric, boolean, error or string).
voidsetCellValue(double value)
Set a numeric value for the cell.
voidsetCellValue(Date value)

Converts the supplied date to its equivalent Excel numeric value and sets that into the cell.

Note - There is actually no 'DATE' cell type in Excel.

voidsetCellValue(LocalDateTime value)

Converts the supplied date to its equivalent Excel numeric value and sets that into the cell.

Note - There is actually no 'DATE' cell type in Excel.

voidsetCellValue(LocalDate value)

Converts the supplied date to its equivalent Excel numeric value and sets that into the cell.

Note - There is actually no 'DATE' cell type in Excel.

voidsetCellValue(Calendar value)

Set a date value for the cell.

voidsetCellValue(RichTextString value)
Set a rich string value for the cell.
voidsetCellValue(String value)
Set a string value for the cell.
voidsetCellValue(boolean value)
Set a boolean value for the cell
voidsetHyperlink(Hyperlink link)
Assign a hyperlink to this cell