Modifier and Type | Method and Description |
---|---|
void |
DoubleUserInput.setErrorValidator(InputValidator<Double> validator)
Set a custom input validator for detecting errors for the user input.
|
void |
IntegerUserInput.setErrorValidator(InputValidator<Integer> validator)
Set a custom input validator for detecting errors for the user input.
|
void |
StringUserInput.setErrorValidator(InputValidator<String> validator)
Set a custom input validator for detecting errors for the user input.
|
Modifier and Type | Method and Description |
---|---|
InputValidator<Double> |
InputValidationFactory.createDoubleRangeValidator(double minValue,
double maxValue)
Creates a range validator for doubles which can be used to ensure that input values are between a specified
upper and lower boundary.
|
InputValidator<Integer> |
InputValidationFactory.createIntegerRangeValidator(int minValue,
int maxValue)
Creates a range validator for integers which can be used to ensure that input values are between a specified
upper and lower boundary.
|
InputValidator<String> |
InputValidationFactory.createStringLengthValidator(int minLength,
int maxLength)
Creates a validator which checks that the length of an input string is within the specified range.
|
Modifier and Type | Method and Description |
---|---|
KeyboardTextInput |
KeyboardTextInput.setErrorValidator(InputValidator<String> validator)
Sets an input validator for the virtual keyboard.
|
KeyboardNumberInput<T> |
KeyboardNumberInput.setErrorValidator(InputValidator<T> validator)
Sets an input validator for the virtual numeric keypad.
|
Copyright © 2020. All rights reserved.