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

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
 boolean isValid(String text)
          Determines if a text value is valid based on the rules of the validator.
 

Method Detail

isValid

boolean isValid(String text)
Determines if a text value is valid based on the rules of the validator.

Parameters:
text -
Returns:
true if the value is valid; false, otherwise.