Class ContextualDataValidator
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.data.validate.ContextualDataValidator
-
- All Implemented Interfaces:
IDataValidator
public abstract class ContextualDataValidator extends Object implements IDataValidator
-
-
Field Summary
-
Fields inherited from interface org.eclipse.nebula.widgets.nattable.data.validate.IDataValidator
ALWAYS_VALID, NEVER_VALID
-
-
Constructor Summary
Constructors Constructor Description ContextualDataValidator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
validate(int columnIndex, int rowIndex, Object newValue)
abstract boolean
validate(ILayerCell cell, IConfigRegistry configRegistry, Object newValue)
-
-
-
Method Detail
-
validate
public boolean validate(int columnIndex, int rowIndex, Object newValue)
- Specified by:
validate
in interfaceIDataValidator
- Parameters:
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 theTextCellEditor
the text typed in by the user will be converted to the canonical value using theIDisplayConverter
before it hits this method- Returns:
true
if newValue is valid,false
otherwise.- See Also:
IDataProvider.getDataValue(int, int)
-
validate
public abstract boolean validate(ILayerCell cell, IConfigRegistry configRegistry, Object newValue)
- Specified by:
validate
in interfaceIDataValidator
- Parameters:
cell
- LayerCell which should be validatedconfigRegistry
- TheIConfigRegistry
used to retrieve contextual information for the cell.newValue
- Value entered through the edit control text box, combo box etc. Note: In case of theTextCellEditor
the text typed in by the user will be converted to the canonical value using theIDisplayConverter
before it hits this method- Returns:
true
if newValue is valid,false
otherwise.- See Also:
IDataProvider.getDataValue(int, int)
-
-