Class MinValidator<T extends Number>
java.lang.Object
io.jmix.flowui.component.validation.AbstractValidator<T>
io.jmix.flowui.component.validation.MinValidator<T>
- All Implemented Interfaces:
- Validator<T>,- Consumer<T>,- org.springframework.beans.factory.Aware,- org.springframework.beans.factory.InitializingBean,- org.springframework.context.ApplicationContextAware
@Component("flowui_MinValidator")
@Scope("prototype")
public class MinValidator<T extends Number>
extends AbstractValidator<T>
implements org.springframework.beans.factory.InitializingBean
- 
Field SummaryFieldsFields inherited from class io.jmix.flowui.component.validation.AbstractValidatorapplicationContext, currentAuthentication, datatypeRegistry, message, messages, substitutor
- 
Constructor SummaryConstructorsConstructorDescriptionMinValidator(int min) MinValidator(int min, String message) Constructor with custom error message.
- 
Method SummaryMethods inherited from class io.jmix.flowui.component.validation.AbstractValidatorafterPropertiesSet, fireValidationException, fireValidationException, formatValue, getMessage, getTemplateErrorMessage, setApplicationContext, setMessageMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet
- 
Field Details- 
minprotected int min
- 
defaultMessage
 
- 
- 
Constructor Details- 
MinValidatorpublic MinValidator()
- 
MinValidatorpublic MinValidator(int min) 
- 
MinValidatorConstructor with custom error message. This message can contain '${value}' and '${min}' keys for formatted output.Example: "Value '${value}' should be greater than or equal to '${min}'". - Parameters:
- min- min value
- message- error message
 
 
- 
- 
Method Details- 
setMinpublic void setMin(int min) Sets min value of the range. Min value cannot be less than 0. Default value is 0.Note, min value is included in range. Examples: value = 0, min = 0 - is valid value = 1, min = 2 - is not valid- Parameters:
- min- min value
 
- 
getMinpublic long getMin()- Returns:
- min value
 
- 
acceptDescription copied from interface:ValidatorChecks a value.
 
-