Interface InputProperties<T>


public interface InputProperties<T>
Defines which input is valid and how to convert input for text input editors.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final InputProperties<String>
    Input properties for a plain string.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    canInputChar(char chr)
    Gets whether the user can enter the given char into the input field.
    gets the default value for newly created inputs that have no other default value available.
    default boolean
    Gets whether a given user input is valid or not.
    default String
    Converts a value matching this input properties to a string.
    Converts some input into a value matching this input properties.
  • Field Details

  • Method Details

    • defaultValue

      T defaultValue()
      gets the default value for newly created inputs that have no other default value available.
    • valueOf

      T valueOf(String str)
      Converts some input into a value matching this input properties. This may fail with an exception only if isValid(String) returns false for the same input.
    • toString

      default String toString(T t)
      Converts a value matching this input properties to a string.
    • canInputChar

      default boolean canInputChar(char chr)
      Gets whether the user can enter the given char into the input field.
    • isValid

      default boolean isValid(String str)
      Gets whether a given user input is valid or not.