T - Value typeI - Concrete validatable input typeC - Concrete configurator typepublic interface ValidatableInputConfigurator<T,I extends ValidatableInput<T>,C extends ValidatableInputConfigurator<T,I,C>>
ValidatableInput configurator.| Modifier and Type | Method and Description |
|---|---|
C |
required()
Sets the
Input as required. |
C |
required(com.holonplatform.core.i18n.Localizable message)
Sets the
Input as required, using given message as validation error message. |
default C |
required(String message)
Sets the
Input as required, using given message as validation error message. |
default C |
required(String message,
String messageCode,
Object... arguments)
Sets the
Input as required, using given message as validation error message. |
C |
required(com.holonplatform.core.Validator<T> validator)
Set the
Input as required, using given Validator to check the input value. |
C |
validateOnValueChange(boolean validateOnValueChange)
|
C |
validationStatusHandler(ValidationStatusHandler<ValidatableInput<T>> validationStatusHandler)
Set the
ValidationStatusHandler to use to input validation status changes. |
C |
withValidator(com.holonplatform.core.Validator<T> validator)
|
C withValidator(com.holonplatform.core.Validator<T> validator)
validator - Validator to add (not null)C validationStatusHandler(ValidationStatusHandler<ValidatableInput<T>> validationStatusHandler)
ValidationStatusHandler to use to input validation status changes.validationStatusHandler - the ValidationStatusHandler to set (not null)C validateOnValueChange(boolean validateOnValueChange)
Input component value every time the Input value changes.
Default is true.
validateOnValueChange - true to perform value validation every time the Input value
changes, false if notC required()
Input as required. Required inputs must filled by the user, and its validation will fail when
empty.C required(com.holonplatform.core.Validator<T> validator)
Input as required, using given Validator to check the input value. Required inputs must
filled by the user, and its validation will fail when empty.validator - The Validator to use to check the required input value (not null)C required(com.holonplatform.core.i18n.Localizable message)
Input as required, using given message as validation error message. Required inputs must filled
by the user, and its validation will fail when empty.message - The message to use to notify the required validation failuredefault C required(String message, String messageCode, Object... arguments)
Input as required, using given message as validation error message. Required inputs must filled
by the user, and its validation will fail when empty.message - The default message to use to notify the required validation failuremessageCode - The message localization codearguments - Optional message translation argumentsdefault C required(String message)
Input as required, using given message as validation error message. Required inputs must filled
by the user, and its validation will fail when empty.message - The default message to use to notify the required validation failureCopyright © 2020 The Holon Platform. All rights reserved.