Class DataValidator
java.lang.Object
org.eclipse.nebula.widgets.nattable.data.validate.DataValidator
- All Implemented Interfaces:
IDataValidator
- Direct Known Subclasses:
DefaultDataValidator,DefaultNumericDataValidator
-
Field Summary
Fields inherited from interface org.eclipse.nebula.widgets.nattable.data.validate.IDataValidator
ALWAYS_VALID, NEVER_VALID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanbooleanvalidate(ILayerCell cell, IConfigRegistry configRegistry, Object newValue)
-
Constructor Details
-
DataValidator
public DataValidator()
-
-
Method Details
-
validate
- Specified by:
validatein 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 theTextCellEditorthe text typed in by the user will be converted to the canonical value using theIDisplayConverterbefore it hits this method- Returns:
trueif newValue is valid,falseotherwise.- See Also:
-
validate
- Specified by:
validatein interfaceIDataValidator- Parameters:
cell- LayerCell which should be validatedconfigRegistry- TheIConfigRegistryused to retrieve contextual information for the cell.newValue- Value entered through the edit control text box, combo box etc. Note: In case of theTextCellEditorthe text typed in by the user will be converted to the canonical value using theIDisplayConverterbefore it hits this method- Returns:
trueif newValue is valid,falseotherwise.- See Also:
-