Java org.apache.poi.hssf.usermodel HSSFCell fields, constructors, methods, implement or subclass

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

Introduction

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

The text is from its open source code.

Field

Method

booleangetBooleanCellValue()
get the value of the cell as a boolean.
CellTypegetCachedFormulaResultType()
Only valid for formula cells
CellTypegetCachedFormulaResultTypeEnum()
Only valid for formula cells
HSSFCommentgetCellComment()
Returns comment associated with this cell
StringgetCellFormula()
HSSFCellStylegetCellStyle()
get the style for the cell.
CellTypegetCellType()
get the cells type (numeric, formula or string)
CellTypegetCellTypeEnum()
intgetColumnIndex()
DategetDateCellValue()
Get the value of the cell as a date.
bytegetErrorCellValue()
get the value of the cell as an error code.
HSSFHyperlinkgetHyperlink()
doublegetNumericCellValue()
Get the value of the cell as a number.
HSSFRichTextStringgetRichStringCellValue()
get the value of the cell as a string - for numeric cells we throw an exception.
HSSFRowgetRow()
Returns the HSSFRow this cell belongs to
intgetRowIndex()
HSSFSheetgetSheet()
Returns the HSSFSheet this cell belongs to
StringgetStringCellValue()
get the value of the cell as a string - for numeric cells we throw an exception.
voidsetCellComment(Comment comment)
Assign a comment to this cell.
voidsetCellErrorValue(byte errorCode)
set a error value for the cell
voidsetCellErrorValue(FormulaError error)
set a error value for the cell
voidsetCellFormula(String formula)
voidsetCellStyle(CellStyle style)

Set the style for the cell.

voidsetCellStyle(HSSFCellStyle style)
voidsetCellType(CellType cellType)
voidsetCellValue(boolean value)
set a boolean value for the cell
voidsetHyperlink(Hyperlink hyperlink)
Assign a hyperlink to this cell.
StringtoString()
Returns a string representation of the cell This method returns a simple representation, anything more complex should be in user code, with knowledge of the semantics of the sheet being processed.