Package org.miaixz.bus.office.excel.cell
Class VirtualCell
java.lang.Object
org.apache.poi.ss.usermodel.CellBase
org.miaixz.bus.office.excel.cell.VirtualCell
- All Implemented Interfaces:
org.apache.poi.ss.usermodel.Cell
public class VirtualCell
extends org.apache.poi.ss.usermodel.CellBase
虚拟单元格,表示一个单元格的位置、值和样式,但是并非实际创建的单元格 注意:虚拟单元格设置值和样式均不会在实际工作簿中生效
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualCell(org.apache.poi.ss.usermodel.Cell cell, int x, int y) 构造VirtualCell(org.apache.poi.ss.usermodel.Cell cell, int x, int y, Object value) 构造VirtualCell(org.apache.poi.ss.usermodel.Row row, int x, int y) 构造 -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.poi.ss.util.CellRangeAddressbooleanorg.apache.poi.ss.usermodel.CellTypeorg.apache.poi.ss.usermodel.Commentorg.apache.poi.ss.usermodel.CellStyleorg.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()protected org.apache.poi.ss.SpreadsheetVersionbooleanvoidprotected voidvoidvoidvoidsetCellComment(org.apache.poi.ss.usermodel.Comment comment) voidsetCellErrorValue(byte value) protected voidsetCellFormulaImpl(String formula) voidsetCellStyle(org.apache.poi.ss.usermodel.CellStyle style) protected voidsetCellTypeImpl(org.apache.poi.ss.usermodel.CellType cellType) voidsetCellValue(boolean value) protected voidsetCellValueImpl(double value) protected voidsetCellValueImpl(String value) protected voidsetCellValueImpl(LocalDateTime value) protected voidsetCellValueImpl(Calendar value) protected voidsetCellValueImpl(Date value) protected voidsetCellValueImpl(org.apache.poi.ss.usermodel.RichTextString value) voidsetHyperlink(org.apache.poi.ss.usermodel.Hyperlink link) Methods inherited from class org.apache.poi.ss.usermodel.CellBase
getAddress, getValueType, removeFormula, setBlank, setCellFormula, setCellType, setCellValue, setCellValue, setCellValue, setCellValue, setCellValue, setCellValue, tryToDeleteArrayFormulaMethods 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
-
VirtualCell
public VirtualCell(org.apache.poi.ss.usermodel.Cell cell, int x, int y) 构造- Parameters:
cell- 参照单元格x- 新的列号,从0开始y- 新的行号,从0开始
-
VirtualCell
构造- Parameters:
cell- 参照单元格x- 新的列号,从0开始y- 新的行号,从0开始value- 新值
-
VirtualCell
public VirtualCell(org.apache.poi.ss.usermodel.Row row, int x, int y) 构造- Parameters:
row- 行x- 列号,从0开始y- 行号,从0开始
-
-
Method Details
-
setCellTypeImpl
protected void setCellTypeImpl(org.apache.poi.ss.usermodel.CellType cellType) - Specified by:
setCellTypeImplin classorg.apache.poi.ss.usermodel.CellBase
-
setCellFormulaImpl
- Specified by:
setCellFormulaImplin classorg.apache.poi.ss.usermodel.CellBase
-
removeFormulaImpl
protected void removeFormulaImpl()- Specified by:
removeFormulaImplin classorg.apache.poi.ss.usermodel.CellBase
-
setCellValueImpl
protected void setCellValueImpl(double value) - Specified by:
setCellValueImplin classorg.apache.poi.ss.usermodel.CellBase
-
setCellValueImpl
- Specified by:
setCellValueImplin classorg.apache.poi.ss.usermodel.CellBase
-
setCellValueImpl
- Specified by:
setCellValueImplin classorg.apache.poi.ss.usermodel.CellBase
-
setCellValueImpl
- Specified by:
setCellValueImplin classorg.apache.poi.ss.usermodel.CellBase
-
setCellValueImpl
- Specified by:
setCellValueImplin classorg.apache.poi.ss.usermodel.CellBase
-
setCellValueImpl
protected void setCellValueImpl(org.apache.poi.ss.usermodel.RichTextString value) - Specified by:
setCellValueImplin classorg.apache.poi.ss.usermodel.CellBase
-
getSpreadsheetVersion
protected org.apache.poi.ss.SpreadsheetVersion getSpreadsheetVersion()- Specified by:
getSpreadsheetVersionin classorg.apache.poi.ss.usermodel.CellBase
-
getColumnIndex
public int getColumnIndex() -
getRowIndex
public int getRowIndex() -
getSheet
public org.apache.poi.ss.usermodel.Sheet getSheet() -
getRow
public org.apache.poi.ss.usermodel.Row getRow() -
getCellType
public org.apache.poi.ss.usermodel.CellType getCellType() -
getCachedFormulaResultType
public org.apache.poi.ss.usermodel.CellType getCachedFormulaResultType() -
getCellFormula
-
getNumericCellValue
public double getNumericCellValue() -
getDateCellValue
-
getLocalDateTimeCellValue
-
getRichStringCellValue
public org.apache.poi.ss.usermodel.RichTextString getRichStringCellValue() -
getStringCellValue
-
setCellValue
public void setCellValue(boolean value) -
setCellErrorValue
public void setCellErrorValue(byte value) -
getBooleanCellValue
public boolean getBooleanCellValue() -
getErrorCellValue
public byte getErrorCellValue() -
getCellStyle
public org.apache.poi.ss.usermodel.CellStyle getCellStyle() -
setCellStyle
public void setCellStyle(org.apache.poi.ss.usermodel.CellStyle style) -
setAsActiveCell
public void setAsActiveCell() -
getCellComment
public org.apache.poi.ss.usermodel.Comment getCellComment() -
setCellComment
public void setCellComment(org.apache.poi.ss.usermodel.Comment comment) -
removeCellComment
public void removeCellComment() -
getHyperlink
public org.apache.poi.ss.usermodel.Hyperlink getHyperlink() -
setHyperlink
public void setHyperlink(org.apache.poi.ss.usermodel.Hyperlink link) -
removeHyperlink
public void removeHyperlink() -
getArrayFormulaRange
public org.apache.poi.ss.util.CellRangeAddress getArrayFormulaRange() -
isPartOfArrayFormulaGroup
public boolean isPartOfArrayFormulaGroup()
-