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
  • Constructor Details

    • ContextualDataValidator

      public ContextualDataValidator()
  • Method Details

    • 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 if newValue is valid, false otherwise.
      See Also:
    • validate

      public abstract boolean validate(ILayerCell cell, IConfigRegistry configRegistry, Object newValue)
      Specified by:
      validate in interface IDataValidator
      Parameters:
      cell - LayerCell which should be validated
      configRegistry - The IConfigRegistry used to retrieve contextual information for the cell.
      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 if newValue is valid, false otherwise.
      See Also: