org.eclipse.nebula.widgets.nattable.data.validate
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextualDataValidator
public ContextualDataValidator()
validate
public boolean validate(int columnIndex,
int rowIndex,
Object newValue)
- Specified by:
validate
in interface IDataValidator
- 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 the TextCellEditor
the text typed in by the user
will be converted to the canonical value using the IDisplayConverter
before it hits this method
- Returns:
- true is 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 interface IDataValidator
- Parameters:
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 method
- Returns:
- true is newValue is valid. False otherwise.
- See Also:
IDataProvider.getDataValue(int, int)
Copyright © 2014. All rights reserved.