Package org.aoju.bus.office.excel.cell
Class NullCell
java.lang.Object
org.aoju.bus.office.excel.cell.NullCell
- All Implemented Interfaces:
org.apache.poi.ss.usermodel.Cell
当单元格不存在时使用此对象表示,得到的值为null
此对象只用于标注单元格所在位置信息
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.poi.ss.util.CellAddressorg.apache.poi.ss.util.CellRangeAddressbooleanorg.apache.poi.ss.usermodel.CellTypeorg.apache.poi.ss.usermodel.CellTypeorg.apache.poi.ss.usermodel.Commentorg.apache.poi.ss.usermodel.CellStyleorg.apache.poi.ss.usermodel.CellTypeorg.apache.poi.ss.usermodel.CellTypeintbyteorg.apache.poi.ss.usermodel.Hyperlinkdoubleorg.apache.poi.ss.usermodel.RichTextStringorg.apache.poi.ss.usermodel.RowgetRow()intorg.apache.poi.ss.usermodel.SheetgetSheet()booleanvoidvoidvoidvoidvoidsetBlank()voidsetCellComment(org.apache.poi.ss.usermodel.Comment comment) voidsetCellErrorValue(byte value) voidsetCellFormula(String formula) voidsetCellStyle(org.apache.poi.ss.usermodel.CellStyle style) voidsetCellType(org.apache.poi.ss.usermodel.CellType cellType) voidsetCellValue(boolean value) voidsetCellValue(double value) voidsetCellValue(String value) voidsetCellValue(LocalDateTime value) voidsetCellValue(Calendar value) voidsetCellValue(Date value) voidsetCellValue(org.apache.poi.ss.usermodel.RichTextString value) voidsetHyperlink(org.apache.poi.ss.usermodel.Hyperlink link) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.ss.usermodel.Cell
setCellValue
-
Constructor Details
-
NullCell
public NullCell(org.apache.poi.ss.usermodel.Row row, int columnIndex) 构造函数- Parameters:
row- 行columnIndex- 列号,从0开始
-
-
Method Details
-
getColumnIndex
public int getColumnIndex()- Specified by:
getColumnIndexin interfaceorg.apache.poi.ss.usermodel.Cell
-
getRowIndex
public int getRowIndex()- Specified by:
getRowIndexin interfaceorg.apache.poi.ss.usermodel.Cell
-
getSheet
public org.apache.poi.ss.usermodel.Sheet getSheet()- Specified by:
getSheetin interfaceorg.apache.poi.ss.usermodel.Cell
-
getRow
public org.apache.poi.ss.usermodel.Row getRow()- Specified by:
getRowin interfaceorg.apache.poi.ss.usermodel.Cell
-
setBlank
public void setBlank()- Specified by:
setBlankin interfaceorg.apache.poi.ss.usermodel.Cell
-
getCellType
public org.apache.poi.ss.usermodel.CellType getCellType()- Specified by:
getCellTypein interfaceorg.apache.poi.ss.usermodel.Cell
-
setCellType
public void setCellType(org.apache.poi.ss.usermodel.CellType cellType) - Specified by:
setCellTypein interfaceorg.apache.poi.ss.usermodel.Cell
-
getCellTypeEnum
public org.apache.poi.ss.usermodel.CellType getCellTypeEnum() -
getCachedFormulaResultTypeEnum
public org.apache.poi.ss.usermodel.CellType getCachedFormulaResultTypeEnum() -
getCachedFormulaResultType
public org.apache.poi.ss.usermodel.CellType getCachedFormulaResultType()- Specified by:
getCachedFormulaResultTypein interfaceorg.apache.poi.ss.usermodel.Cell
-
setCellValue
public void setCellValue(double value) - Specified by:
setCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
setCellValue
- Specified by:
setCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
setCellValue
- Specified by:
setCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
setCellValue
- Specified by:
setCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
setCellValue
public void setCellValue(org.apache.poi.ss.usermodel.RichTextString value) - Specified by:
setCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
setCellValue
- Specified by:
setCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
removeFormula
- Specified by:
removeFormulain interfaceorg.apache.poi.ss.usermodel.Cell- Throws:
IllegalStateException
-
getCellFormula
- Specified by:
getCellFormulain interfaceorg.apache.poi.ss.usermodel.Cell
-
setCellFormula
public void setCellFormula(String formula) throws org.apache.poi.ss.formula.FormulaParseException, IllegalStateException - Specified by:
setCellFormulain interfaceorg.apache.poi.ss.usermodel.Cell- Throws:
org.apache.poi.ss.formula.FormulaParseExceptionIllegalStateException
-
getNumericCellValue
public double getNumericCellValue()- Specified by:
getNumericCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
getDateCellValue
- Specified by:
getDateCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
getLocalDateTimeCellValue
- Specified by:
getLocalDateTimeCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
getRichStringCellValue
public org.apache.poi.ss.usermodel.RichTextString getRichStringCellValue()- Specified by:
getRichStringCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
getStringCellValue
- Specified by:
getStringCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
setCellValue
public void setCellValue(boolean value) - Specified by:
setCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
setCellErrorValue
public void setCellErrorValue(byte value) - Specified by:
setCellErrorValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
getBooleanCellValue
public boolean getBooleanCellValue()- Specified by:
getBooleanCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
getErrorCellValue
public byte getErrorCellValue()- Specified by:
getErrorCellValuein interfaceorg.apache.poi.ss.usermodel.Cell
-
getCellStyle
public org.apache.poi.ss.usermodel.CellStyle getCellStyle()- Specified by:
getCellStylein interfaceorg.apache.poi.ss.usermodel.Cell
-
setCellStyle
public void setCellStyle(org.apache.poi.ss.usermodel.CellStyle style) - Specified by:
setCellStylein interfaceorg.apache.poi.ss.usermodel.Cell
-
setAsActiveCell
public void setAsActiveCell()- Specified by:
setAsActiveCellin interfaceorg.apache.poi.ss.usermodel.Cell
-
getAddress
public org.apache.poi.ss.util.CellAddress getAddress()- Specified by:
getAddressin interfaceorg.apache.poi.ss.usermodel.Cell
-
getCellComment
public org.apache.poi.ss.usermodel.Comment getCellComment()- Specified by:
getCellCommentin interfaceorg.apache.poi.ss.usermodel.Cell
-
setCellComment
public void setCellComment(org.apache.poi.ss.usermodel.Comment comment) - Specified by:
setCellCommentin interfaceorg.apache.poi.ss.usermodel.Cell
-
removeCellComment
public void removeCellComment()- Specified by:
removeCellCommentin interfaceorg.apache.poi.ss.usermodel.Cell
-
getHyperlink
public org.apache.poi.ss.usermodel.Hyperlink getHyperlink()- Specified by:
getHyperlinkin interfaceorg.apache.poi.ss.usermodel.Cell
-
setHyperlink
public void setHyperlink(org.apache.poi.ss.usermodel.Hyperlink link) - Specified by:
setHyperlinkin interfaceorg.apache.poi.ss.usermodel.Cell
-
removeHyperlink
public void removeHyperlink()- Specified by:
removeHyperlinkin interfaceorg.apache.poi.ss.usermodel.Cell
-
getArrayFormulaRange
public org.apache.poi.ss.util.CellRangeAddress getArrayFormulaRange()- Specified by:
getArrayFormulaRangein interfaceorg.apache.poi.ss.usermodel.Cell
-
isPartOfArrayFormulaGroup
public boolean isPartOfArrayFormulaGroup()- Specified by:
isPartOfArrayFormulaGroupin interfaceorg.apache.poi.ss.usermodel.Cell
-