Class DataValidation
java.lang.Object
com.independentsoft.office.spreadsheet.DataValidation
The Class DataValidation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the error message.Gets the error style.Gets the error title.Gets the formula1.Gets the formula2.Gets the ime mode.Gets the operator.Gets the prompt.Gets the prompt title.Gets the reference sequence.getType()Gets the type.booleanChecks if is allow blank.booleanChecks if is show drop down.booleanChecks if is show error message.booleanChecks if is show input message.voidsetAllowBlank(boolean allowBlank)Sets the allow blank.voidsetErrorMessage(String errorMessage)Sets the error message.voidsetErrorStyle(DataValidationErrorStyle errorStyle)Sets the error style.voidsetErrorTitle(String errorTitle)Sets the error title.voidsetFormula1(String formula1)Sets the formula1.voidsetFormula2(String formula2)Sets the formula2.voidsetImeMode(DataValidationImeMode imeMode)Sets the ime mode.voidSets the operator.voidSets the prompt.voidsetPromptTitle(String promptTitle)Sets the prompt title.voidsetReferenceSequence(String referenceSequence)Sets the reference sequence.voidsetShowDropDown(boolean showDropDown)Sets the show drop down.voidsetShowErrorMessage(boolean showErrorMessage)Sets the show error message.voidsetShowInputMessage(boolean showInputMessage)Sets the show input message.voidsetType(DataValidationType type)Sets the type.toString()
-
Constructor Details
-
DataValidation
public DataValidation()Instantiates a new data validation.
-
-
Method Details
-
clone
-
toString
-
getFormula1
Gets the formula1.- Returns:
- the formula1
-
setFormula1
Sets the formula1.- Parameters:
formula1- the new formula1
-
getFormula2
Gets the formula2.- Returns:
- the formula2
-
setFormula2
Sets the formula2.- Parameters:
formula2- the new formula2
-
isAllowBlank
public boolean isAllowBlank()Checks if is allow blank.- Returns:
- true, if is allow blank
-
setAllowBlank
public void setAllowBlank(boolean allowBlank)Sets the allow blank.- Parameters:
allowBlank- the new allow blank
-
getErrorMessage
Gets the error message.- Returns:
- the error message
-
setErrorMessage
Sets the error message.- Parameters:
errorMessage- the new error message
-
getErrorStyle
Gets the error style.- Returns:
- the error style
-
setErrorStyle
Sets the error style.- Parameters:
errorStyle- the new error style
-
getErrorTitle
Gets the error title.- Returns:
- the error title
-
setErrorTitle
Sets the error title.- Parameters:
errorTitle- the new error title
-
getImeMode
Gets the ime mode.- Returns:
- the ime mode
-
setImeMode
Sets the ime mode.- Parameters:
imeMode- the new ime mode
-
getOperator
Gets the operator.- Returns:
- the operator
-
setOperator
Sets the operator.- Parameters:
op- the new operator
-
getPrompt
Gets the prompt.- Returns:
- the prompt
-
setPrompt
Sets the prompt.- Parameters:
prompt- the new prompt
-
getPromptTitle
Gets the prompt title.- Returns:
- the prompt title
-
setPromptTitle
Sets the prompt title.- Parameters:
promptTitle- the new prompt title
-
isShowDropDown
public boolean isShowDropDown()Checks if is show drop down.- Returns:
- true, if is show drop down
-
setShowDropDown
public void setShowDropDown(boolean showDropDown)Sets the show drop down.- Parameters:
showDropDown- the new show drop down
-
isShowErrorMessage
public boolean isShowErrorMessage()Checks if is show error message.- Returns:
- true, if is show error message
-
setShowErrorMessage
public void setShowErrorMessage(boolean showErrorMessage)Sets the show error message.- Parameters:
showErrorMessage- the new show error message
-
isShowInputMessage
public boolean isShowInputMessage()Checks if is show input message.- Returns:
- true, if is show input message
-
setShowInputMessage
public void setShowInputMessage(boolean showInputMessage)Sets the show input message.- Parameters:
showInputMessage- the new show input message
-
getReferenceSequence
Gets the reference sequence.- Returns:
- the reference sequence
-
setReferenceSequence
Sets the reference sequence.- Parameters:
referenceSequence- the new reference sequence
-
getType
Gets the type.- Returns:
- the type
-
setType
Sets the type.- Parameters:
type- the new type
-