Interface TethysUIDataEditField.TethysUIValidatedField<T>

Type Parameters:
T - the item class
All Known Subinterfaces:
TethysUIDataEditField.TethysUICharArrayEditField, TethysUIDataEditField.TethysUICharArrayTextAreaField, TethysUIDataEditField.TethysUICurrencyEditField<T>, TethysUIDataEditField.TethysUIIntegerEditField, TethysUIDataEditField.TethysUILongEditField, TethysUIDataEditField.TethysUIMoneyEditField, TethysUIDataEditField.TethysUIPriceEditField, TethysUIDataEditField.TethysUIRateEditField, TethysUIDataEditField.TethysUIRatioEditField, TethysUIDataEditField.TethysUIRawDecimalEditField, TethysUIDataEditField.TethysUIShortEditField, TethysUIDataEditField.TethysUIStringEditField, TethysUIDataEditField.TethysUIStringTextAreaField, TethysUIDataEditField.TethysUIUnitsEditField, TethysUIDataEditField.TethysUIValidatedEditField<T>
All Known Implementing Classes:
TethysUIDataEditTextFieldControl
Enclosing interface:
TethysUIDataEditField<T>

public static interface TethysUIDataEditField.TethysUIValidatedField<T>
ValidatedField.
  • Method Details

    • setValidator

      void setValidator(Function<T,String> pValidator)
      Set the validator.

      This should validate the value and return null for OK, and an error text for failure

      Parameters:
      pValidator - the validator
    • setReporter

      void setReporter(Consumer<String> pReporter)
      Set the reporter.

      This should report the validation error

      Parameters:
      pReporter - the reporter