public class NullCell extends Object implements org.apache.poi.ss.usermodel.Cell
| Constructor and Description |
|---|
NullCell(org.apache.poi.ss.usermodel.Row row,
int columnIndex)
构造
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.poi.ss.util.CellAddress |
getAddress() |
org.apache.poi.ss.util.CellRangeAddress |
getArrayFormulaRange() |
boolean |
getBooleanCellValue() |
org.apache.poi.ss.usermodel.CellType |
getCachedFormulaResultType() |
org.apache.poi.ss.usermodel.CellType |
getCachedFormulaResultTypeEnum() |
org.apache.poi.ss.usermodel.Comment |
getCellComment() |
String |
getCellFormula() |
org.apache.poi.ss.usermodel.CellStyle |
getCellStyle() |
org.apache.poi.ss.usermodel.CellType |
getCellType() |
org.apache.poi.ss.usermodel.CellType |
getCellTypeEnum() |
int |
getColumnIndex() |
Date |
getDateCellValue() |
byte |
getErrorCellValue() |
org.apache.poi.ss.usermodel.Hyperlink |
getHyperlink() |
LocalDateTime |
getLocalDateTimeCellValue() |
double |
getNumericCellValue() |
org.apache.poi.ss.usermodel.RichTextString |
getRichStringCellValue() |
org.apache.poi.ss.usermodel.Row |
getRow() |
int |
getRowIndex() |
org.apache.poi.ss.usermodel.Sheet |
getSheet() |
String |
getStringCellValue() |
boolean |
isPartOfArrayFormulaGroup() |
void |
removeCellComment() |
void |
removeFormula() |
void |
removeHyperlink() |
void |
setAsActiveCell() |
void |
setBlank() |
void |
setCellComment(org.apache.poi.ss.usermodel.Comment comment) |
void |
setCellErrorValue(byte value) |
void |
setCellFormula(String formula) |
void |
setCellStyle(org.apache.poi.ss.usermodel.CellStyle style) |
void |
setCellType(org.apache.poi.ss.usermodel.CellType cellType) |
void |
setCellValue(boolean value) |
void |
setCellValue(Calendar value) |
void |
setCellValue(Date value) |
void |
setCellValue(double value) |
void |
setCellValue(LocalDateTime value) |
void |
setCellValue(org.apache.poi.ss.usermodel.RichTextString value) |
void |
setCellValue(String value) |
void |
setHyperlink(org.apache.poi.ss.usermodel.Hyperlink link) |
public NullCell(org.apache.poi.ss.usermodel.Row row,
int columnIndex)
row - 行columnIndex - 列号,从0开始public int getColumnIndex()
getColumnIndex in interface org.apache.poi.ss.usermodel.Cellpublic int getRowIndex()
getRowIndex in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.Sheet getSheet()
getSheet in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.Row getRow()
getRow in interface org.apache.poi.ss.usermodel.Cellpublic void setCellType(org.apache.poi.ss.usermodel.CellType cellType)
setCellType in interface org.apache.poi.ss.usermodel.Cellpublic void setBlank()
setBlank in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.CellType getCellType()
getCellType in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.CellType getCellTypeEnum()
getCellTypeEnum in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.CellType getCachedFormulaResultType()
getCachedFormulaResultType in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.CellType getCachedFormulaResultTypeEnum()
getCachedFormulaResultTypeEnum in interface org.apache.poi.ss.usermodel.Cellpublic void setCellValue(double value)
setCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellValue(Date value)
setCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellValue(LocalDateTime value)
setCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellValue(Calendar value)
setCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellValue(org.apache.poi.ss.usermodel.RichTextString value)
setCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellValue(String value)
setCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellFormula(String formula) throws org.apache.poi.ss.formula.FormulaParseException, IllegalStateException
setCellFormula in interface org.apache.poi.ss.usermodel.Cellorg.apache.poi.ss.formula.FormulaParseExceptionIllegalStateExceptionpublic void removeFormula()
throws IllegalStateException
removeFormula in interface org.apache.poi.ss.usermodel.CellIllegalStateExceptionpublic String getCellFormula()
getCellFormula in interface org.apache.poi.ss.usermodel.Cellpublic double getNumericCellValue()
getNumericCellValue in interface org.apache.poi.ss.usermodel.Cellpublic Date getDateCellValue()
getDateCellValue in interface org.apache.poi.ss.usermodel.Cellpublic LocalDateTime getLocalDateTimeCellValue()
getLocalDateTimeCellValue in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.RichTextString getRichStringCellValue()
getRichStringCellValue in interface org.apache.poi.ss.usermodel.Cellpublic String getStringCellValue()
getStringCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellValue(boolean value)
setCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellErrorValue(byte value)
setCellErrorValue in interface org.apache.poi.ss.usermodel.Cellpublic boolean getBooleanCellValue()
getBooleanCellValue in interface org.apache.poi.ss.usermodel.Cellpublic byte getErrorCellValue()
getErrorCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellStyle(org.apache.poi.ss.usermodel.CellStyle style)
setCellStyle in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.CellStyle getCellStyle()
getCellStyle in interface org.apache.poi.ss.usermodel.Cellpublic void setAsActiveCell()
setAsActiveCell in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.util.CellAddress getAddress()
getAddress in interface org.apache.poi.ss.usermodel.Cellpublic void setCellComment(org.apache.poi.ss.usermodel.Comment comment)
setCellComment in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.Comment getCellComment()
getCellComment in interface org.apache.poi.ss.usermodel.Cellpublic void removeCellComment()
removeCellComment in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.Hyperlink getHyperlink()
getHyperlink in interface org.apache.poi.ss.usermodel.Cellpublic void setHyperlink(org.apache.poi.ss.usermodel.Hyperlink link)
setHyperlink in interface org.apache.poi.ss.usermodel.Cellpublic void removeHyperlink()
removeHyperlink in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.util.CellRangeAddress getArrayFormulaRange()
getArrayFormulaRange in interface org.apache.poi.ss.usermodel.Cellpublic boolean isPartOfArrayFormulaGroup()
isPartOfArrayFormulaGroup in interface org.apache.poi.ss.usermodel.CellCopyright © 2025. All rights reserved.