StringToDoubleConverter converter on the
field instead or bind the field to a Property of type
Double.@Deprecated public class DoubleValidator extends AbstractStringValidator
AbstractStringValidator for more information.Validator.EmptyValueException, Validator.InvalidValueException| Constructor and Description |
|---|
DoubleValidator(String errorMessage)
Deprecated.
As of 7.0. Use a Double converter on the field instead and/or
use a
DoubleRangeValidator 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 DoubleValidator(String errorMessage)
DoubleRangeValidator 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.