Package io.keikai.model.impl
Class AbstractCellAdv
java.lang.Object
io.keikai.model.impl.AbstractCellAdv
- All Implemented Interfaces:
CellStyleHolder,FormulaContent,LinkedModelObject,SCell,Serializable
- Direct Known Subclasses:
CellImpl
public abstract class AbstractCellAdv
extends Object
implements SCell, LinkedModelObject, Serializable
- Since:
- 3.5.0
- Author:
- dennis
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.keikai.model.SCell
SCell.CellType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckFormulaResultType(SCell.CellType... types) protected voidcheckType(SCell.CellType... types) Gets the boolean valueGets the date value that is transfered by the double number value.abstract CellValuegetEvalCellValue(boolean evaluatedVal) abstract FormulaExpressionReturn the rich text value. if this cell is a simple string value, it will return a read-only rich-text which wraps string-value and current font.abstract intabstract intgetValue()abstract booleanbooleanCheck if this cell contains a rich-text valuevoidsetBooleanValue(Boolean date) abstract voidsetCalcAutoHeight(boolean b) voidsetDateValue(Date date) Sets the number value a date instance, it will transfer the date to double valuevoidsetErrorValue(ErrorValue errorValue) abstract voidsetFormulaResultValue(org.apache.poi.ss.formula.eval.ValueEval value) abstract voidsetFormulaValue(String formula, FormulaType formulaType) abstract voidsetFormulaValue(String formula, Locale locale) abstract voidsetFormulaValue(String formula, Locale locale, FormulaType formulaType) voidsetNumberValue(Double number) voidsetStringValue(String value) Set string value, if the value start with '=', then it sets as formulaabstract voidsetTextHeight(int height) abstract voidsetTextWidth(int width) setupHyperlink(SHyperlink.HyperlinkType type, String address, String label) setup a hyperlinkSetup a rich text value(Create a new one if the old value is not a rich-text) and return the instance which to be edited.protected abstract voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.keikai.model.CellStyleHolder
getCellStyle, getCellStyle, setCellStyleMethods inherited from interface io.keikai.model.FormulaContent
clearFormulaResultCache, isFormulaParsingErrorMethods inherited from interface io.keikai.model.impl.LinkedModelObject
checkOrphan, destroyMethods inherited from interface io.keikai.model.SCell
clearValue, deleteComment, getArrayFormulaRegion, getColumnIndex, getComment, getFormulaResultType, getHyperlink, getReferenceString, getRowIndex, getSheet, getType, isNull, isPartOfArrayFormulaGroup, setComment, setFormulaValue, setHyperlink, setValue
-
Constructor Details
-
AbstractCellAdv
public AbstractCellAdv()
-
-
Method Details
-
checkType
-
checkFormulaResultType
-
getValue
-
setStringValue
Description copied from interface:SCellSet string value, if the value start with '=', then it sets as formula- Specified by:
setStringValuein interfaceSCell
-
getStringValue
- Specified by:
getStringValuein interfaceSCell
-
getInitValue
-
setNumberValue
- Specified by:
setNumberValuein interfaceSCell
-
getNumberValue
- Specified by:
getNumberValuein interfaceSCell
-
setDateValue
Description copied from interface:SCellSets the number value a date instance, it will transfer the date to double value- Specified by:
setDateValuein interfaceSCell
-
getDateValue
Description copied from interface:SCellGets the date value that is transfered by the double number value.- Specified by:
getDateValuein interfaceSCell
-
setBooleanValue
- Specified by:
setBooleanValuein interfaceSCell
-
getBooleanValue
Description copied from interface:SCellGets the boolean value- Specified by:
getBooleanValuein interfaceSCell
-
getErrorValue
- Specified by:
getErrorValuein interfaceSCell
-
setErrorValue
- Specified by:
setErrorValuein interfaceSCell
-
getFormulaValue
- Specified by:
getFormulaValuein interfaceSCell- Returns:
- returns formula string without '=', e.g. SUM(A1:B2)
-
setupRichTextValue
Description copied from interface:SCellSetup a rich text value(Create a new one if the old value is not a rich-text) and return the instance which to be edited.- Specified by:
setupRichTextValuein interfaceSCell
-
getRichTextValue
Description copied from interface:SCellReturn the rich text value. if this cell is a simple string value, it will return a read-only rich-text which wraps string-value and current font.- Specified by:
getRichTextValuein interfaceSCell- Returns:
-
isRichTextValue
public boolean isRichTextValue()Description copied from interface:SCellCheck if this cell contains a rich-text value- Specified by:
isRichTextValuein interfaceSCell
-
setupHyperlink
Description copied from interface:SCellsetup a hyperlink- Specified by:
setupHyperlinkin interfaceSCell
-
setupComment
- Specified by:
setupCommentin interfaceSCell
-
setFormulaValue
-
setFormulaValue
- Parameters:
formula-locale-- Since:
- 6.0.0
-
setFormulaValue
- Parameters:
formula-- Since:
- 6.0.0
-
setFormulaResultValue
public abstract void setFormulaResultValue(org.apache.poi.ss.formula.eval.ValueEval value) -
setValue
-
getFormulaExpression
-
setTextHeight
public abstract void setTextHeight(int height) -
getTextHeight
public abstract int getTextHeight() -
setCalcAutoHeight
public abstract void setCalcAutoHeight(boolean b) -
isCalcAutoHeight
public abstract boolean isCalcAutoHeight() -
setTextWidth
public abstract void setTextWidth(int width) -
getTextWidth
public abstract int getTextWidth() -
getEvalCellValue
-