public static interface FormValidator.OnFormListener
| Modifier and Type | Method and Description |
|---|---|
void |
onValidationError(FormValidator validator,
FormComponent component)
Invoked during validation process, when the passed form component returns
false from BaseFormComponent.validate(). |
void |
onValidationResult(FormValidator validator,
boolean passed)
Invoked at the end of each validation process.
|
void onValidationError(@NonNull FormValidator validator, @NonNull FormComponent component)
false from BaseFormComponent.validate().validator - The form validator within which has error occurred.component - Form component of which view does not passed current validation requirements.onValidationResult(FormValidator, boolean)void onValidationResult(@NonNull FormValidator validator, boolean passed)
FormValidator.VALIDATION_MODE_BULK and
FormValidator.VALIDATION_MODE_SINGLE for more info.validator - The form validator within which has been validation finished.passed - True if validation succeeded, false if at least one
form component returns false from BaseFormComponent.validate()
during validation process.