public interface IDataValidator
Modifier and Type | Field and Description |
---|---|
static IDataValidator |
ALWAYS_VALID |
static IDataValidator |
NEVER_VALID |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(ILayerCell cell,
IConfigRegistry configRegistry,
Object newValue) |
boolean |
validate(int columnIndex,
int rowIndex,
Object newValue) |
static final IDataValidator ALWAYS_VALID
static final IDataValidator NEVER_VALID
boolean validate(int columnIndex, int rowIndex, Object newValue)
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)
boolean validate(ILayerCell cell, IConfigRegistry configRegistry, Object newValue)
cell
- LayerCell which should be validatedconfigRegistry
- newValue
- 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.