StringToIntegerConverter converter on
the field instead or bind the field to a Property of type
Integer.@Deprecated public class IntegerValidator extends AbstractStringValidator
AbstractStringValidator for more
information.Validator.EmptyValueException, Validator.InvalidValueException| Constructor and Description |
|---|
IntegerValidator(String errorMessage)
Deprecated.
As of 7.0. Use an Integer converter on the field instead
and/or use an
IntegerRangeValidator for validating
that the value is inside a given range. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isValidValue(String value)
Deprecated.
Internally check the validity of a value.
|
void |
validate(Object value)
Deprecated.
Checks the given value against this validator.
|
getTypegetErrorMessage, isValid, isValidType, setErrorMessage@Deprecated public IntegerValidator(String errorMessage)
IntegerRangeValidator for validating
that the value is inside a given range.errorMessage - the message to display in case the value does not validate.protected boolean isValidValue(String value)
AbstractValidatorAbstractValidator.validate(Object) and the return value of this method is ignored.
This method should not be called from outside the validator class itself.isValidValue in class AbstractValidator<String>public void validate(Object value) throws Validator.InvalidValueException
ValidatorValidator.InvalidValueException is thrown.validate in interface Validatorvalidate in class AbstractValidator<String>value - the value to checkValidator.InvalidValueException - if the value is invalidCopyright © 2019 Vaadin Ltd. All rights reserved.