public interface IValidation
| Modifier and Type | Method and Description |
|---|---|
void |
add(ValidationType type)
Adds data validation to the specified range.
|
void |
add(ValidationType type,
ValidationAlertStyle alertStyle,
ValidationOperator validationOperator,
java.lang.Object formula1,
java.lang.Object formula2)
Adds data validation to the specified range.
|
void |
delete()
Deletes the object.
|
void |
fromJson(java.lang.String json)
Generates the data validation from the json string.
|
ValidationAlertStyle |
getAlertStyle()
Gets the validation alert style.
|
java.lang.String |
getErrorMessage()
Gets the data validation error message.
|
java.lang.String |
getErrorTitle()
Gets the title of the data-validation error dialog box.
|
java.lang.Object |
getFormula1()
Gets the value or expression associated with the conditional format or data
validation.
|
java.lang.Object |
getFormula2()
Gets the value or expression associated with the second part of a conditional
format or data validation.
|
boolean |
getIgnoreBlank()
Gets whether blank values are permitted by the data range validation.
|
IMEModeType |
getIMEMode()
Gets the description of the Japanese input rules.
|
boolean |
getInCellDropdown()
Gets whether data validation displays a drop-down list that contains
acceptable values.
|
java.lang.String |
getInputMessage()
Gets the data validation input message.
|
java.lang.String |
getInputTitle()
Gets the title of the data-validation input dialog box.
|
ValidationOperator |
getOperator()
Gets the operator for the conditional format or data validation.
|
boolean |
getShowError()
Gets whether the data validation error message will be displayed whenever the
user enters invalid data.
|
boolean |
getShowInputMessage()
Gets whether the data validation input message is displayed whenever the user
selects a cell in the data validation range.
|
ValidationType |
getType()
Gets the data type validation for a range.
|
boolean |
getValue()
Gets whether all the validation criteria are met (that is, if the range
contains valid data).
|
void |
setAlertStyle(ValidationAlertStyle value)
Sets the validation alert style.
|
void |
setErrorMessage(java.lang.String value)
Sets the data validation error message.
|
void |
setErrorTitle(java.lang.String value)
Sets the title of the data-validation error dialog box.
|
void |
setFormula1(java.lang.Object value)
Sets the value or expression associated with the conditional format or data
validation.
|
void |
setFormula2(java.lang.Object value)
Sets the value or expression associated with the second part of a conditional
format or data validation.
|
void |
setIgnoreBlank(boolean value)
Sets whether blank values are permitted by the data range validation.
|
void |
setIMEMode(IMEModeType value)
Sets the description of the Japanese input rules.
|
void |
setInCellDropdown(boolean value)
Sets whether data validation displays a drop-down list that contains
acceptable values.
|
void |
setInputMessage(java.lang.String value)
Sets the data validation input message.
|
void |
setInputTitle(java.lang.String value)
Sets the title of the data-validation input dialog box.
|
void |
setOperator(ValidationOperator value)
Sets the operator for the conditional format or data validation.
|
void |
setShowError(boolean value)
Sets whether the data validation error message will be displayed whenever the
user enters invalid data.
|
void |
setShowInputMessage(boolean value)
Sets whether the data validation input message is displayed whenever the user
selects a cell in the data validation range.
|
void |
setType(ValidationType value)
Sets the data type validation for a range.
|
java.lang.String |
toJson()
Generates a json string from the data validation.
|
void add(ValidationType type)
type - Required ValidationType. The validation type.void add(ValidationType type, ValidationAlertStyle alertStyle, ValidationOperator validationOperator, java.lang.Object formula1, java.lang.Object formula2)
type - Required ValidationType. The validation type.alertStyle - Optional Object. The validation alert style.validationOperator - Optional Object. The data validation operator.formula1 - Optional Object. The first part of the data validation equation.formula2 - Optional Object. The second part of the data validation when
Operator is Between or NotBetween (otherwise, this argument is
ignored).void delete()
ValidationAlertStyle getAlertStyle()
void setAlertStyle(ValidationAlertStyle value)
java.lang.String getErrorMessage()
void setErrorMessage(java.lang.String value)
java.lang.String getErrorTitle()
void setErrorTitle(java.lang.String value)
java.lang.Object getFormula1()
void setFormula1(java.lang.Object value)
java.lang.Object getFormula2()
void setFormula2(java.lang.Object value)
boolean getIgnoreBlank()
void setIgnoreBlank(boolean value)
IMEModeType getIMEMode()
void setIMEMode(IMEModeType value)
boolean getInCellDropdown()
void setInCellDropdown(boolean value)
java.lang.String getInputMessage()
void setInputMessage(java.lang.String value)
java.lang.String getInputTitle()
void setInputTitle(java.lang.String value)
ValidationOperator getOperator()
void setOperator(ValidationOperator value)
boolean getShowError()
void setShowError(boolean value)
boolean getShowInputMessage()
void setShowInputMessage(boolean value)
ValidationType getType()
void setType(ValidationType value)
boolean getValue()
void fromJson(java.lang.String json)
json - the json stringjava.lang.String toJson()