GridValidationCollection

Inheritance: java.lang.Object

public class GridValidationCollection

Encapsulates a collection of GridValidation objects.

Methods

MethodDescription
add()Add a GridValidation to the collection.
add(GridCellArea ca)Adds a data validation to the collection.
add(GridValidation validation)Add a GridValidation to the collection.
add(int row, int column)Add a GridValidation to the collection.the validation is applied to the specificed cell.
add(String cellname)Add a GridValidation to the collection.the validation is applied to the specificed cell.
clear()Clears all validations.
equals(Object arg0)
get(int index)Gets the GridValidation element at the specified index.
getClass()
getCount()
getValidationInCell(int row, int column)Gets the validation applied to given cell.
hashCode()
notify()
notifyAll()
removeAt(int index)Remove the validation at the specified index.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

add()

public GridValidation add()

Add a GridValidation to the collection.

Remarks

NOTE: This member is now obsolete. Instead, please use GridValidationCollection.Add(row,col) method. This property will be removed 12 months later since JANUARY 2015. Aspose apologizes for any inconvenience you may have experienced.

Returns: GridValidation - GridValidation the added GridValidation instance.

add(GridCellArea ca)

public GridValidation add(GridCellArea ca)

Adds a data validation to the collection.

Parameters:

ParameterTypeDescription
caGridCellAreaThe area contains this validation.

Returns: GridValidation - GridValidation the validation.

add(GridValidation validation)

public int add(GridValidation validation)

Add a GridValidation to the collection.

Parameters:

ParameterTypeDescription
validationGridValidationA validation object.

Returns: int - GridValidation object index.

add(int row, int column)

public GridValidation add(int row, int column)

Add a GridValidation to the collection.the validation is applied to the specificed cell.

Parameters:

ParameterTypeDescription
rowintThe row index.
columnintThe column index.

Returns: GridValidation - GridValidation the added GridValidation instance.

add(String cellname)

public GridValidation add(String cellname)

Add a GridValidation to the collection.the validation is applied to the specificed cell.

Parameters:

ParameterTypeDescription
cellnamejava.lang.Stringthe name of the cell.

Returns: GridValidation - GridValidation the added GridValidation instance.

clear()

public void clear()

Clears all validations.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

get(int index)

public GridValidation get(int index)

Gets the GridValidation element at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero based index of the element.

Returns: GridValidation - The element at the specified index.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCount()

public int getCount()

Returns: int

getValidationInCell(int row, int column)

public GridValidation getValidationInCell(int row, int column)

Gets the validation applied to given cell.

Parameters:

ParameterTypeDescription
rowintThe row index.
columnintThe column index.

Returns: GridValidation - Returns a GridValidation object or null if there is no validation for given cell

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeAt(int index)

public void removeAt(int index)

Remove the validation at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero based index of the element.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int