public abstract class DataValidator extends Object implements IDataValidator
ALWAYS_VALID, NEVER_VALID
Constructor and Description |
---|
DataValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(ILayerCell cell,
IConfigRegistry configRegistry,
Object newValue) |
abstract boolean |
validate(int columnIndex,
int rowIndex,
Object newValue) |
public abstract boolean validate(int columnIndex, int rowIndex, Object newValue)
validate
in interface IDataValidator
columnIndex
- Index of the column being validatedrowIndex
- Index of the row being validatednewValue
- Value entered through the edit control text box, combo box etc.
Note: In case of the TextCellEditor
the text typed in by the user
will be converted to the canonical value using the IDisplayConverter
before it hits this methodIDataProvider.getDataValue(int, int)
public boolean validate(ILayerCell cell, IConfigRegistry configRegistry, Object newValue)
validate
in interface IDataValidator
cell
- LayerCell which should be validatednewValue
- Value entered through the edit control text box, combo box etc.
Note: In case of the TextCellEditor
the text typed in by the user
will be converted to the canonical value using the IDisplayConverter
before it hits this methodIDataProvider.getDataValue(int, int)
Copyright © 2013. All Rights Reserved.