Package io.keikai.model
Interface SDataValidation
- All Superinterfaces:
FormulaContent
- All Known Implementing Classes:
AbstractDataValidationAdv,DataValidationImpl
This class stores the restrictions on what data can or should be entered in a cell.
- Since:
- 3.5.0
- Author:
- dennis
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRegion(CellRegion region) getId()intintintgetReferToCellList(int row, int col) Return the referred list relative to the specified row and column.getSheet()getValue(int i) getValue1(int i) getValue2(int i) booleanbooleanReturns whether the referred list formula contains a relative column.booleanReturns whether the referred list formula contains a relative row.booleanReturn formula parsing state.booleanbooleanbooleanbooleanvoidremoveRegion(CellRegion region) voidsetAlertStyle(SDataValidation.AlertStyle alertStyle) voidsetErrorMessage(String message) voidsetErrorTitle(String title) voidsetFormula1(String formula) voidsetFormula2(String formula) voidsetIgnoreBlank(boolean ignore) voidsetInCellDropdown(boolean show) voidsetInputMessage(String message) voidsetInputTitle(String title) voidvoidsetRegions(Set<CellRegion> regions) voidsetShowError(boolean show) voidsetShowInput(boolean show) voidMethods inherited from interface io.keikai.model.FormulaContent
clearFormulaResultCache
-
Method Details
-
getSheet
SSheet getSheet() -
getAlertStyle
SDataValidation.AlertStyle getAlertStyle() -
setAlertStyle
-
setIgnoreBlank
void setIgnoreBlank(boolean ignore) -
isIgnoreBlank
boolean isIgnoreBlank() -
setInCellDropdown
void setInCellDropdown(boolean show) -
isInCellDropdown
boolean isInCellDropdown() -
setShowInput
void setShowInput(boolean show) -
isShowInput
boolean isShowInput() -
setShowError
void setShowError(boolean show) -
isShowError
boolean isShowError() -
setInputTitle
-
setInputMessage
-
getInputTitle
String getInputTitle() -
getInputMessage
String getInputMessage() -
setErrorTitle
-
setErrorMessage
-
getErrorTitle
String getErrorTitle() -
getErrorMessage
String getErrorMessage() -
getRegions
Set<CellRegion> getRegions() -
setRegions
-
addRegion
-
removeRegion
-
getValidationType
SDataValidation.ValidationType getValidationType() -
setValidationType
-
getOperatorType
SDataValidation.OperatorType getOperatorType() -
setOperatorType
-
isFormulaParsingError
boolean isFormulaParsingError()Return formula parsing state.- Specified by:
isFormulaParsingErrorin interfaceFormulaContent- Returns:
- true if has error, false if no error or no formula
-
hasReferToCellList
boolean hasReferToCellList() -
getReferToCellList
-
getNumOfValue
int getNumOfValue() -
getValue
-
getNumOfValue1
int getNumOfValue1() -
getValue1
-
getNumOfValue2
int getNumOfValue2() -
getValue2
-
getFormula1
String getFormula1() -
getFormula2
String getFormula2() -
setFormula1
-
setFormula2
-
getId
Object getId() -
hasReferToRelativeCol
boolean hasReferToRelativeCol()Returns whether the referred list formula contains a relative column.- Returns:
- Since:
- 3.7.0
-
hasReferToRelativeRow
boolean hasReferToRelativeRow()Returns whether the referred list formula contains a relative row.- Returns:
- Since:
- 3.7.0
-
getReferToCellList
Return the referred list relative to the specified row and column.- Parameters:
row-col-- Returns:
- Since:
- 3.7.0
-