Class X14DataValidation
java.lang.Object
com.independentsoft.office.spreadsheet.extensions.X14DataValidation
Represents a data validation (x14:dataValidation element).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets whether blank values are allowed.getError()Gets the error message.Gets the error style.Gets the error dialog title.Gets the first formula (x14:formula1/xm:f).Gets the second formula (x14:formula2/xm:f).Gets the IME mode.Gets the comparison operator.Gets the prompt message.Gets the prompt title.Gets the cell ranges the validation applies to (xm:sqref element).Gets whether the in-cell dropdown is suppressed.Gets whether the error message is shown.Gets whether the input message is shown.getType()Gets the validation type.voidsetAllowBlank(Boolean allowBlank)Sets whether blank values are allowed.voidSets the error message.voidsetErrorStyle(String errorStyle)Sets the error style.voidsetErrorTitle(String errorTitle)Sets the error dialog title.voidsetFormula1(String formula1)Sets the first formula (x14:formula1/xm:f).voidsetFormula2(String formula2)Sets the second formula (x14:formula2/xm:f).voidsetImeMode(String imeMode)Sets the IME mode.voidsetOperator(String validationOperator)Sets the comparison operator.voidSets the prompt message.voidsetPromptTitle(String promptTitle)Sets the prompt title.voidsetSequenceOfReferences(String sequenceOfReferences)Sets the cell ranges the validation applies to (xm:sqref element).voidsetShowDropDown(Boolean showDropDown)Sets whether the in-cell dropdown is suppressed.voidsetShowErrorMessage(Boolean showErrorMessage)Sets whether the error message is shown.voidsetShowInputMessage(Boolean showInputMessage)Sets whether the input message is shown.voidSets the validation type.toString()
-
Constructor Details
-
X14DataValidation
public X14DataValidation()Instantiates a new x14 data validation.
-
-
Method Details
-
clone
-
toString
-
getType
Gets the validation type.- Returns:
- the validation type
-
setType
Sets the validation type.- Parameters:
type- the new validation type
-
getErrorStyle
Gets the error style.- Returns:
- the error style
-
setErrorStyle
Sets the error style.- Parameters:
errorStyle- the new error style
-
getImeMode
Gets the IME mode.- Returns:
- the IME mode
-
setImeMode
Sets the IME mode.- Parameters:
imeMode- the new IME mode
-
getOperator
Gets the comparison operator.- Returns:
- the comparison operator
-
setOperator
Sets the comparison operator.- Parameters:
validationOperator- the new comparison operator
-
getAllowBlank
Gets whether blank values are allowed.- Returns:
- whether blank values are allowed
-
setAllowBlank
Sets whether blank values are allowed.- Parameters:
allowBlank- the new allow blank flag
-
getShowDropDown
Gets whether the in-cell dropdown is suppressed.- Returns:
- whether the in-cell dropdown is suppressed
-
setShowDropDown
Sets whether the in-cell dropdown is suppressed.- Parameters:
showDropDown- the new show drop down flag
-
getShowInputMessage
Gets whether the input message is shown.- Returns:
- whether the input message is shown
-
setShowInputMessage
Sets whether the input message is shown.- Parameters:
showInputMessage- the new show input message flag
-
getShowErrorMessage
Gets whether the error message is shown.- Returns:
- whether the error message is shown
-
setShowErrorMessage
Sets whether the error message is shown.- Parameters:
showErrorMessage- the new show error message flag
-
getErrorTitle
Gets the error dialog title.- Returns:
- the error dialog title
-
setErrorTitle
Sets the error dialog title.- Parameters:
errorTitle- the new error dialog title
-
getError
Gets the error message.- Returns:
- the error message
-
setError
Sets the error message.- Parameters:
error- the new error message
-
getPromptTitle
Gets the prompt title.- Returns:
- the prompt title
-
setPromptTitle
Sets the prompt title.- Parameters:
promptTitle- the new prompt title
-
getPrompt
Gets the prompt message.- Returns:
- the prompt message
-
setPrompt
Sets the prompt message.- Parameters:
prompt- the new prompt message
-
getFormula1
Gets the first formula (x14:formula1/xm:f).- Returns:
- the first formula
-
setFormula1
Sets the first formula (x14:formula1/xm:f).- Parameters:
formula1- the new first formula
-
getFormula2
Gets the second formula (x14:formula2/xm:f).- Returns:
- the second formula
-
setFormula2
Sets the second formula (x14:formula2/xm:f).- Parameters:
formula2- the new second formula
-
getSequenceOfReferences
Gets the cell ranges the validation applies to (xm:sqref element).- Returns:
- the cell ranges the validation applies to
-
setSequenceOfReferences
Sets the cell ranges the validation applies to (xm:sqref element).- Parameters:
sequenceOfReferences- the new cell ranges the validation applies to
-