Package org.apache.pivot.wtk.validation
Interface Validator
-
- All Known Implementing Classes:
BigDecimalValidator
,BigIntegerValidator
,ComparableRangeValidator
,ComparableValidator
,DecimalValidator
,DoubleRangeValidator
,DoubleValidator
,EmptyTextValidator
,FloatRangeValidator
,FloatValidator
,FormattedValidator
,IntRangeValidator
,IntValidator
,LongRangeValidator
,NotEmptyTextValidator
,RegexTextValidator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Validator
Validation interface for text components. Allows the programmer to specify constraints on text data.This is indicated visually to the user (a red background would be typical), and events are fired by the TextInput if the programmer wishes to take further action.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isValid(java.lang.String text)
Determines if a text value is valid based on the rules of the validator.
-