Class NegativeOrZeroValidator<T extends Number>
java.lang.Object
io.jmix.flowui.component.validation.AbstractValidator<T>
io.jmix.flowui.component.validation.NegativeOrZeroValidator<T>
- All Implemented Interfaces:
Validator<T>
,Consumer<T>
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
@Component("flowui_NegativeOrZeroValidator")
@Scope("prototype")
public class NegativeOrZeroValidator<T extends Number>
extends AbstractValidator<T>
implements org.springframework.beans.factory.InitializingBean
-
Field Summary
Fields inherited from class io.jmix.flowui.component.validation.AbstractValidator
applicationContext, currentAuthentication, datatypeRegistry, message, messages, substitutor
-
Constructor Summary
ConstructorDescriptionNegativeOrZeroValidator
(String message) Constructor for custom error message. -
Method Summary
Methods inherited from class io.jmix.flowui.component.validation.AbstractValidator
afterPropertiesSet, fireValidationException, fireValidationException, formatValue, getMessage, getTemplateErrorMessage, setApplicationContext, setMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
-
Field Details
-
defaultMessage
-
-
Constructor Details
-
NegativeOrZeroValidator
public NegativeOrZeroValidator() -
NegativeOrZeroValidator
Constructor for custom error message. This message can contain '${value}' key for formatted output.Example: "Value '${value}' should be less than or equal to 0".
- Parameters:
message
- error message
-
-
Method Details