public class GridValidation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
GridCustomServerValidation |
ServerValidation
Gets or sets the serverside validation javascript function name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addACell(int row,
int column)
add the validation settings in the cell.
|
void |
addACell(java.lang.String cellname)
add the validation settings in the cell.
|
void |
addArea(GridCellArea cellArea)
Applies the validation to the area.
|
java.util.ArrayList |
getAreaList()
Represents a collection of
GridCellArea which contains the data validation settings. |
java.lang.String |
getClientValidationFunction()
Gets the client validation javascript function name.
|
java.lang.String |
getErrorMessage()
Represents the data validation error message.
|
java.lang.String |
getErrorTitle()
Represents the title of the data-validation error dialog box.
|
java.lang.String |
getFormula1()
Represents the value or expression associated with the data validation.
|
java.lang.String |
getFormula2()
Represents the value or expression associated with the second part of the data validation.
|
java.lang.String |
getInputMessage()
Represents the data validation error message.
|
java.lang.String |
getInputTitle()
Represents the title of the data-validation input dialog box.
|
java.lang.Object |
getListValue(int row,
int column)
Get the value for list of the validation for the specified cell.
|
int |
getOperator()
Represents the operator for the data validation.
|
java.lang.String |
getRegEx()
Gets the regular expression string.
|
boolean |
getShowError()
Indicates whether the data validation error message will be displayed whenever the user enters invalid data.
|
boolean |
getShowInput()
Indicates whether the data validation input message will be displayed whenever the user selects a cell in the data validation range.
|
int |
getValidationType()
Gets the validation type.
|
java.lang.Object[] |
getValue1()
Represents the value associated with the data validation.
|
java.util.ArrayList<java.lang.String> |
getValueList()
Gets the value list object.
|
boolean |
isRequired()
Gets whether the cell value is required.
|
void |
removeACell(int row,
int column)
Remove the validation settings in the cell.
|
void |
removeArea(GridCellArea cellArea)
Remove the validation settings in the range.
|
void |
setClientValidationFunction(java.lang.String value)
Sets the client validation javascript function name.
|
void |
setErrorMessage(java.lang.String value)
Represents the data validation error message.
|
void |
setErrorTitle(java.lang.String value)
Represents the title of the data-validation error dialog box.
|
void |
setFormula1(java.lang.String value)
Represents the value or expression associated with the data validation.
|
void |
setFormula2(java.lang.String value)
Represents the value or expression associated with the second part of the data validation.
|
void |
setInputMessage(java.lang.String value)
Represents the data validation error message.
|
void |
setInputTitle(java.lang.String value)
Represents the title of the data-validation input dialog box.
|
void |
setOperator(int value)
Represents the operator for the data validation.
|
void |
setRegEx(java.lang.String value)
Sets the regular expression string.
|
void |
setRequired(boolean value)
Sets whether the cell value is required.
|
void |
setShowError(boolean value)
Indicates whether the data validation error message will be displayed whenever the user enters invalid data.
|
void |
setShowInput(boolean value)
Indicates whether the data validation input message will be displayed whenever the user selects a cell in the data validation range.
|
void |
setValidationType(int value)
Sets the validation type.
|
void |
setValueList(java.util.ArrayList<java.lang.String> value)
Sets the value list object.
|
public GridCustomServerValidation ServerValidation
Remarks
Use the GridCustomServerValidation property to specify the serverside validation .public int getValidationType()
See GridValidationType.
public void setValidationType(int value)
See GridValidationType.
public boolean isRequired()
public void setRequired(boolean value)
public java.util.ArrayList<java.lang.String> getValueList()
public void setValueList(java.util.ArrayList<java.lang.String> value)
public void addACell(int row,
int column)
row - The row index.column - The column index.public void addACell(java.lang.String cellname)
cellname - cell name.public void addArea(GridCellArea cellArea)
Remarks
In this method , we will remove all old validations on this area.cellArea - The area.public void removeArea(GridCellArea cellArea)
cellArea - The range which contains the data validation settings.public void removeACell(int row,
int column)
row - The row index.column - The column index.public java.util.ArrayList getAreaList()
GridCellArea which contains the data validation settings.
Remarks
The old valvidations on the area will not be removed if directly adding are to this list.public java.lang.String getFormula1()
public void setFormula1(java.lang.String value)
public java.lang.Object getListValue(int row,
int column)
Remarks
Only for validation whose type is List and has been applied to given cell, otherwise null will be returned.row - The row index.column - The column index.public java.lang.Object[] getValue1()
public java.lang.String getFormula2()
public void setFormula2(java.lang.String value)
public int getOperator()
See GridOperatorType.
public void setOperator(int value)
See GridOperatorType.
public boolean getShowInput()
public void setShowInput(boolean value)
public java.lang.String getInputMessage()
public void setInputMessage(java.lang.String value)
public java.lang.String getInputTitle()
public void setInputTitle(java.lang.String value)
public boolean getShowError()
public void setShowError(boolean value)
public java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String value)
public java.lang.String getErrorTitle()
public void setErrorTitle(java.lang.String value)
public java.lang.String getRegEx()
public void setRegEx(java.lang.String value)
public java.lang.String getClientValidationFunction()
Remarks
Use the ClientValidationFunction property to specify the client validation function's name. The function should be declared as this formation:public void setClientValidationFunction(java.lang.String value)
Remarks
Use the ClientValidationFunction property to specify the client validation function's name. The function should be declared as this formation:See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.