Class DefaultNumericDataValidator

java.lang.Object
org.eclipse.nebula.widgets.nattable.data.validate.DataValidator
org.eclipse.nebula.widgets.nattable.data.validate.DefaultNumericDataValidator
All Implemented Interfaces:
IDataValidator

public class DefaultNumericDataValidator extends DataValidator
  • Constructor Details

    • DefaultNumericDataValidator

      public DefaultNumericDataValidator()
  • Method Details

    • validate

      public boolean validate(int columnIndex, int rowIndex, Object newValue)
      Specified by:
      validate in interface IDataValidator
      Specified by:
      validate in class DataValidator
      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: