|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.data.validator.AbstractValidator<java.lang.String>
com.vaadin.data.validator.AbstractStringValidator
com.vaadin.data.validator.IntegerValidator
StringToIntegerConverter
converter on
the field instead or bind the field to a Property
of type
Integer
.
@Deprecated public class IntegerValidator
String validator for integers. See
AbstractStringValidator
for more
information.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.data.Validator |
---|
Validator.EmptyValueException, Validator.InvalidValueException |
Constructor Summary | |
---|---|
IntegerValidator(java.lang.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. |
Method Summary | |
---|---|
protected boolean |
isValidValue(java.lang.String value)
Deprecated. Internally check the validity of a value. |
void |
validate(java.lang.Object value)
Deprecated. Checks the given value against this validator. |
Methods inherited from class com.vaadin.data.validator.AbstractStringValidator |
---|
getType |
Methods inherited from class com.vaadin.data.validator.AbstractValidator |
---|
getErrorMessage, isValid, isValidType, setErrorMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public IntegerValidator(java.lang.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.Method Detail |
---|
protected boolean isValidValue(java.lang.String value)
AbstractValidator
AbstractValidator.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<java.lang.String>
public void validate(java.lang.Object value) throws Validator.InvalidValueException
Validator
Validator.InvalidValueException
is thrown.
validate
in interface Validator
validate
in class AbstractValidator<java.lang.String>
value
- the value to check
Validator.InvalidValueException
- if the value is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |