Package com.vaadin.v7.data.validator
Class FloatRangeValidator
- java.lang.Object
-
- com.vaadin.v7.data.validator.AbstractValidator<T>
-
- com.vaadin.v7.data.validator.RangeValidator<java.lang.Float>
-
- com.vaadin.v7.data.validator.FloatRangeValidator
-
- All Implemented Interfaces:
Validator
,java.io.Serializable
@Deprecated public class FloatRangeValidator extends RangeValidator<java.lang.Float>
Deprecated.Validator for validating that aFloat
is inside a given range.- Since:
- 7.4
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.v7.data.Validator
Validator.EmptyValueException, Validator.InvalidValueException
-
-
Constructor Summary
Constructors Constructor Description FloatRangeValidator(java.lang.String errorMessage, java.lang.Float minValue, java.lang.Float maxValue)
Deprecated.Creates a validator for checking that an Float is within a given range.
-
Method Summary
-
Methods inherited from class com.vaadin.v7.data.validator.RangeValidator
getMaxValue, getMinValue, getType, isMaxValueIncluded, isMinValueIncluded, isValidValue, setMaxValue, setMaxValueIncluded, setMinValue, setMinValueIncluded
-
Methods inherited from class com.vaadin.v7.data.validator.AbstractValidator
getErrorMessage, isValid, isValidType, setErrorMessage, validate
-
-
-
-
Constructor Detail
-
FloatRangeValidator
public FloatRangeValidator(java.lang.String errorMessage, java.lang.Float minValue, java.lang.Float maxValue)
Deprecated.Creates a validator for checking that an Float is within a given range. By default the range is inclusive i.e. both minValue and maxValue are valid values. UseRangeValidator.setMinValueIncluded(boolean)
orRangeValidator.setMaxValueIncluded(boolean)
to change it.- Parameters:
errorMessage
- the message to display in case the value does not validate.minValue
- The minimum value to accept or null for no limitmaxValue
- The maximum value to accept or null for no limit
-
-