Class NullCell

java.lang.Object
org.aoju.bus.office.excel.cell.NullCell
All Implemented Interfaces:
org.apache.poi.ss.usermodel.Cell

public class NullCell extends Object implements org.apache.poi.ss.usermodel.Cell
当单元格不存在时使用此对象表示,得到的值为null 此对象只用于标注单元格所在位置信息
Since:
Java 17+
Author:
Kimi Liu
  • 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:
      getColumnIndex in interface org.apache.poi.ss.usermodel.Cell
    • getRowIndex

      public int getRowIndex()
      Specified by:
      getRowIndex in interface org.apache.poi.ss.usermodel.Cell
    • getSheet

      public org.apache.poi.ss.usermodel.Sheet getSheet()
      Specified by:
      getSheet in interface org.apache.poi.ss.usermodel.Cell
    • getRow

      public org.apache.poi.ss.usermodel.Row getRow()
      Specified by:
      getRow in interface org.apache.poi.ss.usermodel.Cell
    • setBlank

      public void setBlank()
      Specified by:
      setBlank in interface org.apache.poi.ss.usermodel.Cell
    • getCellType

      public org.apache.poi.ss.usermodel.CellType getCellType()
      Specified by:
      getCellType in interface org.apache.poi.ss.usermodel.Cell
    • setCellType

      public void setCellType(org.apache.poi.ss.usermodel.CellType cellType)
      Specified by:
      setCellType in interface org.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:
      getCachedFormulaResultType in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(double value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(Date value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(LocalDateTime value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(Calendar value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(org.apache.poi.ss.usermodel.RichTextString value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(String value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • removeFormula

      public void removeFormula() throws IllegalStateException
      Specified by:
      removeFormula in interface org.apache.poi.ss.usermodel.Cell
      Throws:
      IllegalStateException
    • getCellFormula

      public String getCellFormula()
      Specified by:
      getCellFormula in interface org.apache.poi.ss.usermodel.Cell
    • setCellFormula

      public void setCellFormula(String formula) throws org.apache.poi.ss.formula.FormulaParseException, IllegalStateException
      Specified by:
      setCellFormula in interface org.apache.poi.ss.usermodel.Cell
      Throws:
      org.apache.poi.ss.formula.FormulaParseException
      IllegalStateException
    • getNumericCellValue

      public double getNumericCellValue()
      Specified by:
      getNumericCellValue in interface org.apache.poi.ss.usermodel.Cell
    • getDateCellValue

      public Date getDateCellValue()
      Specified by:
      getDateCellValue in interface org.apache.poi.ss.usermodel.Cell
    • getLocalDateTimeCellValue

      public LocalDateTime getLocalDateTimeCellValue()
      Specified by:
      getLocalDateTimeCellValue in interface org.apache.poi.ss.usermodel.Cell
    • getRichStringCellValue

      public org.apache.poi.ss.usermodel.RichTextString getRichStringCellValue()
      Specified by:
      getRichStringCellValue in interface org.apache.poi.ss.usermodel.Cell
    • getStringCellValue

      public String getStringCellValue()
      Specified by:
      getStringCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellValue

      public void setCellValue(boolean value)
      Specified by:
      setCellValue in interface org.apache.poi.ss.usermodel.Cell
    • setCellErrorValue

      public void setCellErrorValue(byte value)
      Specified by:
      setCellErrorValue in interface org.apache.poi.ss.usermodel.Cell
    • getBooleanCellValue

      public boolean getBooleanCellValue()
      Specified by:
      getBooleanCellValue in interface org.apache.poi.ss.usermodel.Cell
    • getErrorCellValue

      public byte getErrorCellValue()
      Specified by:
      getErrorCellValue in interface org.apache.poi.ss.usermodel.Cell
    • getCellStyle

      public org.apache.poi.ss.usermodel.CellStyle getCellStyle()
      Specified by:
      getCellStyle in interface org.apache.poi.ss.usermodel.Cell
    • setCellStyle

      public void setCellStyle(org.apache.poi.ss.usermodel.CellStyle style)
      Specified by:
      setCellStyle in interface org.apache.poi.ss.usermodel.Cell
    • setAsActiveCell

      public void setAsActiveCell()
      Specified by:
      setAsActiveCell in interface org.apache.poi.ss.usermodel.Cell
    • getAddress

      public org.apache.poi.ss.util.CellAddress getAddress()
      Specified by:
      getAddress in interface org.apache.poi.ss.usermodel.Cell
    • getCellComment

      public org.apache.poi.ss.usermodel.Comment getCellComment()
      Specified by:
      getCellComment in interface org.apache.poi.ss.usermodel.Cell
    • setCellComment

      public void setCellComment(org.apache.poi.ss.usermodel.Comment comment)
      Specified by:
      setCellComment in interface org.apache.poi.ss.usermodel.Cell
    • removeCellComment

      public void removeCellComment()
      Specified by:
      removeCellComment in interface org.apache.poi.ss.usermodel.Cell
    • getHyperlink

      public org.apache.poi.ss.usermodel.Hyperlink getHyperlink()
      Specified by:
      getHyperlink in interface org.apache.poi.ss.usermodel.Cell
    • setHyperlink

      public void setHyperlink(org.apache.poi.ss.usermodel.Hyperlink link)
      Specified by:
      setHyperlink in interface org.apache.poi.ss.usermodel.Cell
    • removeHyperlink

      public void removeHyperlink()
      Specified by:
      removeHyperlink in interface org.apache.poi.ss.usermodel.Cell
    • getArrayFormulaRange

      public org.apache.poi.ss.util.CellRangeAddress getArrayFormulaRange()
      Specified by:
      getArrayFormulaRange in interface org.apache.poi.ss.usermodel.Cell
    • isPartOfArrayFormulaGroup

      public boolean isPartOfArrayFormulaGroup()
      Specified by:
      isPartOfArrayFormulaGroup in interface org.apache.poi.ss.usermodel.Cell