Annotation Interface TextField


@Retention(RUNTIME) @Target(FIELD) public @interface TextField
Renders a config field as a text input.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Stable storage key for the config value.
    User-facing label.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether the field should accept only numeric input.
    boolean
    Whether the field should render as a multi-line text area.
    Placeholder shown when the field is empty.
    Optional tooltip text.
  • Element Details

    • key

      String key
      Stable storage key for the config value.
    • label

      String label
      User-facing label.
    • tooltip

      String tooltip
      Optional tooltip text.
      Default:
      ""
    • placeholder

      String placeholder
      Placeholder shown when the field is empty.
      Default:
      ""
    • digit

      boolean digit
      Whether the field should accept only numeric input.
      Default:
      false
    • multiline

      boolean multiline
      Whether the field should render as a multi-line text area.
      Default:
      false