org.eclipse.nebula.widgets.nattable.data.validate
Class ContextualDataValidator

java.lang.Object
  extended by 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
ContextualDataValidator()
           
 
Method Summary
abstract  boolean validate(ILayerCell cell, IConfigRegistry configRegistry, Object newValue)
           
 boolean validate(int columnIndex, int rowIndex, Object newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextualDataValidator

public ContextualDataValidator()
Method Detail

validate

public boolean validate(int columnIndex,
                        int rowIndex,
                        Object newValue)
Specified by:
validate in interface IDataValidator
Parameters:
columnIndex - Index of the column being validated
rowIndex - Index of the row being validated
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 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 validated
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 method
Returns:
true is newValue is valid. False otherwise.
See Also:
IDataProvider.getDataValue(int, int)


Copyright © 2014. All rights reserved.