public class DefaultDataValidator extends DataValidator
ALWAYS_VALID, NEVER_VALID
Constructor and Description |
---|
DefaultDataValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(int columnIndex,
int rowIndex,
Object newValue) |
validate
public boolean validate(int columnIndex, int rowIndex, Object newValue)
validate
in interface IDataValidator
validate
in class DataValidator
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)
Copyright © 2013. All Rights Reserved.