Package tripleplay.ui

Interface Field.Validator

All Known Implementing Classes:
Field.MaxLength
Enclosing class:
Field

public static interface Field.Validator
For native text fields, decides whether to block a keypress based on the proposed content of the field.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Return false if the keypress causing this text should be blocked.
  • Method Details

    • isValid

      boolean isValid(String text)
      Return false if the keypress causing this text should be blocked.