public class StreamingCell extends Object implements org.apache.poi.ss.usermodel.Cell
| 构造器和说明 |
|---|
StreamingCell(org.apache.poi.ss.usermodel.Sheet sheet,
int columnIndex,
int rowIndex,
boolean use1904Dates) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.poi.ss.util.CellAddress |
getAddress()
Not supported
|
org.apache.poi.ss.util.CellRangeAddress |
getArrayFormulaRange()
Not supported
|
boolean |
getBooleanCellValue()
Get the value of the cell as a boolean.
|
org.apache.poi.ss.usermodel.CellType |
getCachedFormulaResultType()
Only valid for formula cells
|
org.apache.poi.ss.usermodel.CellType |
getCachedFormulaResultTypeEnum()
已过时。
|
org.apache.poi.ss.usermodel.Comment |
getCellComment()
Not supported
|
String |
getCellFormula()
Return a formula for the cell, for example,
SUM(C4:E4) |
org.apache.poi.ss.usermodel.CellStyle |
getCellStyle() |
org.apache.poi.ss.usermodel.CellType |
getCellType()
Return the cell type.
|
org.apache.poi.ss.usermodel.CellType |
getCellTypeEnum()
已过时。
|
int |
getColumnIndex()
Returns column index of this cell
|
Date |
getDateCellValue()
Get the value of the cell as a date.
|
byte |
getErrorCellValue()
Not supported
|
org.apache.poi.ss.usermodel.Hyperlink |
getHyperlink()
Not supported
|
LocalDateTime |
getLocalDateTimeCellValue() |
double |
getNumericCellValue()
Get the value of the cell as a number.
|
String |
getNumericFormat() |
Short |
getNumericFormatIndex() |
org.apache.poi.xssf.usermodel.XSSFRichTextString |
getRichStringCellValue()
Get the value of the cell as a XSSFRichTextString
For numeric cells we throw an exception.
|
org.apache.poi.ss.usermodel.Row |
getRow()
Not Supported
|
int |
getRowIndex()
Returns row index of a row in the sheet that contains this cell
|
org.apache.poi.ss.usermodel.Sheet |
getSheet() |
String |
getStringCellValue()
Get the value of the cell as a string.
|
String |
getType() |
boolean |
isFormulaType() |
boolean |
isPartOfArrayFormulaGroup()
Not supported
|
void |
removeCellComment()
Not supported
|
void |
removeFormula()
Not supported
|
void |
removeHyperlink()
Not supported
|
void |
setAsActiveCell()
Not supported
|
void |
setBlank()
Not supported
|
void |
setCellComment(org.apache.poi.ss.usermodel.Comment comment)
Not supported
|
void |
setCellErrorValue(byte value)
Not supported
|
void |
setCellFormula(String formula)
Not supported
|
void |
setCellStyle(org.apache.poi.ss.usermodel.CellStyle cellStyle) |
void |
setCellType(org.apache.poi.ss.usermodel.CellType cellType)
Not supported
|
void |
setCellValue(boolean value)
Not supported
|
void |
setCellValue(Calendar value)
Not supported
|
void |
setCellValue(Date value)
Not supported
|
void |
setCellValue(double value)
Not supported
|
void |
setCellValue(LocalDate value) |
void |
setCellValue(LocalDateTime value) |
void |
setCellValue(org.apache.poi.ss.usermodel.RichTextString value)
Not supported
|
void |
setCellValue(String value)
Not supported
|
void |
setContentSupplier(com.github.greycode.xlsx.impl.Supplier contentsSupplier) |
void |
setFormula(String formula) |
void |
setFormulaType(boolean formulaType) |
void |
setHyperlink(org.apache.poi.ss.usermodel.Hyperlink link)
Not supported
|
void |
setNumericFormat(String numericFormat) |
void |
setNumericFormatIndex(Short numericFormatIndex) |
void |
setRawContents(Object rawContents) |
void |
setType(String type) |
public StreamingCell(org.apache.poi.ss.usermodel.Sheet sheet,
int columnIndex,
int rowIndex,
boolean use1904Dates)
public void setContentSupplier(com.github.greycode.xlsx.impl.Supplier contentsSupplier)
public void setRawContents(Object rawContents)
public String getNumericFormat()
public void setNumericFormat(String numericFormat)
public Short getNumericFormatIndex()
public void setNumericFormatIndex(Short numericFormatIndex)
public void setFormula(String formula)
public String getType()
public void setType(String type)
public boolean isFormulaType()
public void setFormulaType(boolean formulaType)
public void setCellStyle(org.apache.poi.ss.usermodel.CellStyle cellStyle)
setCellStyle 在接口中 org.apache.poi.ss.usermodel.Cellpublic int getColumnIndex()
getColumnIndex 在接口中 org.apache.poi.ss.usermodel.Cellpublic int getRowIndex()
getRowIndex 在接口中 org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.Row getRow()
getRow 在接口中 org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.Sheet getSheet()
getSheet 在接口中 org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.CellType getCellType()
getCellType 在接口中 org.apache.poi.ss.usermodel.Cell@Deprecated public org.apache.poi.ss.usermodel.CellType getCellTypeEnum()
getCellTypeEnum 在接口中 org.apache.poi.ss.usermodel.CellgetCellType() when we make the CellType enum transition in POI 4.0. See bug 59791.public String getStringCellValue()
getStringCellValue 在接口中 org.apache.poi.ss.usermodel.Cellpublic double getNumericCellValue()
getNumericCellValue 在接口中 org.apache.poi.ss.usermodel.CellNumberFormatException - if the cell value isn't a parsable double.public Date getDateCellValue()
getDateCellValue 在接口中 org.apache.poi.ss.usermodel.CellIllegalStateException - if the cell type returned by getCellType() is CELL_TYPE_STRINGNumberFormatException - if the cell value isn't a parsable double.public boolean getBooleanCellValue()
getBooleanCellValue 在接口中 org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.CellStyle getCellStyle()
getCellStyle 在接口中 org.apache.poi.ss.usermodel.Cellpublic String getCellFormula()
SUM(C4:E4)getCellFormula 在接口中 org.apache.poi.ss.usermodel.CellIllegalStateException - if the cell type returned by getCellType() is not CELL_TYPE_FORMULApublic org.apache.poi.xssf.usermodel.XSSFRichTextString getRichStringCellValue()
For numeric cells we throw an exception. For blank cells we return an empty string. For formula cells we return the pre-calculated value if a string, otherwise an exception
getRichStringCellValue 在接口中 org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.CellType getCachedFormulaResultType()
getCachedFormulaResultType 在接口中 org.apache.poi.ss.usermodel.CellCellType.NUMERIC, CellType.STRING,
CellType.BOOLEAN, CellType.ERROR) depending
on the cached value of the formulapublic void setCellValue(LocalDateTime value)
setCellValue 在接口中 org.apache.poi.ss.usermodel.Cellpublic LocalDateTime getLocalDateTimeCellValue()
getLocalDateTimeCellValue 在接口中 org.apache.poi.ss.usermodel.Cellpublic void setCellValue(LocalDate value)
setCellValue 在接口中 org.apache.poi.ss.usermodel.Cell@Deprecated public org.apache.poi.ss.usermodel.CellType getCachedFormulaResultTypeEnum()
getCachedFormulaResultTypeEnum 在接口中 org.apache.poi.ss.usermodel.Cellpublic void setCellType(org.apache.poi.ss.usermodel.CellType cellType)
setCellType 在接口中 org.apache.poi.ss.usermodel.Cellpublic void setBlank()
setBlank 在接口中 org.apache.poi.ss.usermodel.Cellpublic void setCellValue(double value)
setCellValue 在接口中 org.apache.poi.ss.usermodel.Cellpublic void setCellValue(Date value)
setCellValue 在接口中 org.apache.poi.ss.usermodel.Cellpublic void setCellValue(Calendar value)
setCellValue 在接口中 org.apache.poi.ss.usermodel.Cellpublic void setCellValue(org.apache.poi.ss.usermodel.RichTextString value)
setCellValue 在接口中 org.apache.poi.ss.usermodel.Cellpublic void setCellValue(String value)
setCellValue 在接口中 org.apache.poi.ss.usermodel.Cellpublic void setCellFormula(String formula) throws org.apache.poi.ss.formula.FormulaParseException
setCellFormula 在接口中 org.apache.poi.ss.usermodel.Cellorg.apache.poi.ss.formula.FormulaParseExceptionpublic void removeFormula()
throws IllegalStateException
removeFormula 在接口中 org.apache.poi.ss.usermodel.CellIllegalStateExceptionpublic void setCellValue(boolean value)
setCellValue 在接口中 org.apache.poi.ss.usermodel.Cellpublic void setCellErrorValue(byte value)
setCellErrorValue 在接口中 org.apache.poi.ss.usermodel.Cellpublic byte getErrorCellValue()
getErrorCellValue 在接口中 org.apache.poi.ss.usermodel.Cellpublic void setAsActiveCell()
setAsActiveCell 在接口中 org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.util.CellAddress getAddress()
getAddress 在接口中 org.apache.poi.ss.usermodel.Cellpublic void setCellComment(org.apache.poi.ss.usermodel.Comment comment)
setCellComment 在接口中 org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.Comment getCellComment()
getCellComment 在接口中 org.apache.poi.ss.usermodel.Cellpublic void removeCellComment()
removeCellComment 在接口中 org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.Hyperlink getHyperlink()
getHyperlink 在接口中 org.apache.poi.ss.usermodel.Cellpublic void setHyperlink(org.apache.poi.ss.usermodel.Hyperlink link)
setHyperlink 在接口中 org.apache.poi.ss.usermodel.Cellpublic void removeHyperlink()
removeHyperlink 在接口中 org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.util.CellRangeAddress getArrayFormulaRange()
getArrayFormulaRange 在接口中 org.apache.poi.ss.usermodel.Cellpublic boolean isPartOfArrayFormulaGroup()
isPartOfArrayFormulaGroup 在接口中 org.apache.poi.ss.usermodel.CellCopyright © 2020. All rights reserved.