Interface IDataValidator

    • Method Detail

      • validate

        boolean validate​(int columnIndex,
                         int rowIndex,
                         Object newValue)
        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:
        IDataProvider.getDataValue(int, int)
      • validate

        boolean validate​(ILayerCell cell,
                         IConfigRegistry configRegistry,
                         Object newValue)
        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:
        IDataProvider.getDataValue(int, int)