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.Cell
public int getRowIndex()
getRowIndex
in interface org.apache.poi.ss.usermodel.Cell
public org.apache.poi.ss.usermodel.Sheet getSheet()
getSheet
in interface org.apache.poi.ss.usermodel.Cell
public org.apache.poi.ss.usermodel.Row getRow()
getRow
in interface org.apache.poi.ss.usermodel.Cell
public void setCellType(org.apache.poi.ss.usermodel.CellType cellType)
setCellType
in interface org.apache.poi.ss.usermodel.Cell
public void setBlank()
setBlank
in interface org.apache.poi.ss.usermodel.Cell
public org.apache.poi.ss.usermodel.CellType getCellType()
getCellType
in interface org.apache.poi.ss.usermodel.Cell
public org.apache.poi.ss.usermodel.CellType getCellTypeEnum()
getCellTypeEnum
in interface org.apache.poi.ss.usermodel.Cell
public org.apache.poi.ss.usermodel.CellType getCachedFormulaResultType()
getCachedFormulaResultType
in interface org.apache.poi.ss.usermodel.Cell
public org.apache.poi.ss.usermodel.CellType getCachedFormulaResultTypeEnum()
getCachedFormulaResultTypeEnum
in interface org.apache.poi.ss.usermodel.Cell
public void setCellValue(double value)
setCellValue
in interface org.apache.poi.ss.usermodel.Cell
public void setCellValue(Date value)
setCellValue
in interface org.apache.poi.ss.usermodel.Cell
public void setCellValue(LocalDateTime value)
setCellValue
in interface org.apache.poi.ss.usermodel.Cell
public void setCellValue(Calendar value)
setCellValue
in interface org.apache.poi.ss.usermodel.Cell
public void setCellValue(org.apache.poi.ss.usermodel.RichTextString value)
setCellValue
in interface org.apache.poi.ss.usermodel.Cell
public void setCellValue(String value)
setCellValue
in interface org.apache.poi.ss.usermodel.Cell
public void setCellFormula(String formula) throws org.apache.poi.ss.formula.FormulaParseException, IllegalStateException
setCellFormula
in interface org.apache.poi.ss.usermodel.Cell
org.apache.poi.ss.formula.FormulaParseException
IllegalStateException
public void removeFormula() throws IllegalStateException
removeFormula
in interface org.apache.poi.ss.usermodel.Cell
IllegalStateException
public String getCellFormula()
getCellFormula
in interface org.apache.poi.ss.usermodel.Cell
public double getNumericCellValue()
getNumericCellValue
in interface org.apache.poi.ss.usermodel.Cell
public Date getDateCellValue()
getDateCellValue
in interface org.apache.poi.ss.usermodel.Cell
public LocalDateTime getLocalDateTimeCellValue()
getLocalDateTimeCellValue
in interface org.apache.poi.ss.usermodel.Cell
public org.apache.poi.ss.usermodel.RichTextString getRichStringCellValue()
getRichStringCellValue
in interface org.apache.poi.ss.usermodel.Cell
public String getStringCellValue()
getStringCellValue
in interface org.apache.poi.ss.usermodel.Cell
public void setCellValue(boolean value)
setCellValue
in interface org.apache.poi.ss.usermodel.Cell
public void setCellErrorValue(byte value)
setCellErrorValue
in interface org.apache.poi.ss.usermodel.Cell
public boolean getBooleanCellValue()
getBooleanCellValue
in interface org.apache.poi.ss.usermodel.Cell
public byte getErrorCellValue()
getErrorCellValue
in interface org.apache.poi.ss.usermodel.Cell
public void setCellStyle(org.apache.poi.ss.usermodel.CellStyle style)
setCellStyle
in interface org.apache.poi.ss.usermodel.Cell
public org.apache.poi.ss.usermodel.CellStyle getCellStyle()
getCellStyle
in interface org.apache.poi.ss.usermodel.Cell
public void setAsActiveCell()
setAsActiveCell
in interface org.apache.poi.ss.usermodel.Cell
public org.apache.poi.ss.util.CellAddress getAddress()
getAddress
in interface org.apache.poi.ss.usermodel.Cell
public void setCellComment(org.apache.poi.ss.usermodel.Comment comment)
setCellComment
in interface org.apache.poi.ss.usermodel.Cell
public org.apache.poi.ss.usermodel.Comment getCellComment()
getCellComment
in interface org.apache.poi.ss.usermodel.Cell
public void removeCellComment()
removeCellComment
in interface org.apache.poi.ss.usermodel.Cell
public org.apache.poi.ss.usermodel.Hyperlink getHyperlink()
getHyperlink
in interface org.apache.poi.ss.usermodel.Cell
public void setHyperlink(org.apache.poi.ss.usermodel.Hyperlink link)
setHyperlink
in interface org.apache.poi.ss.usermodel.Cell
public void removeHyperlink()
removeHyperlink
in interface org.apache.poi.ss.usermodel.Cell
public org.apache.poi.ss.util.CellRangeAddress getArrayFormulaRange()
getArrayFormulaRange
in interface org.apache.poi.ss.usermodel.Cell
public boolean isPartOfArrayFormulaGroup()
isPartOfArrayFormulaGroup
in interface org.apache.poi.ss.usermodel.Cell
Copyright © 2024. All rights reserved.