Interface UIInputValidator


public interface UIInputValidator
Interface class which provides a way to validate or reject input provided by a user. This is mainly to be used with UIInputReceiver.

Note: This interface is intended to be implemented by plugins.

  • Method Summary

    Modifier and Type
    Method
    Description
    Validates a input string from the user.
  • Method Details

    • validate

      String validate(String input)
      Validates a input string from the user. This function has to return a localised string message indicating why the given string is not valid. If the string is valid, the function should return null.

      Note - the returned string in the case of invalid input must be localised - no translating of the string returned will take place.