Annotation Interface Text


@Retention(RUNTIME) @Target(FIELD) @Documented public @interface Text
  • Element Details

    • title

      String title
    • titleTranslation

      @Deprecated boolean titleTranslation
      Deprecated.
      OneConfig auto-translates title values that are translation keys so pass the key directly
      Default:
      false
    • titleKey

      Deprecated.
      Default:
      ""
    • description

      String description
      Default:
      ""
    • descriptionTranslation

      @Deprecated boolean descriptionTranslation
      Deprecated.
      OneConfig auto-translates description values that are translation keys so pass the key directly
      Default:
      false
    • descriptionKey

      @Deprecated String descriptionKey
      Deprecated.
      Default:
      ""
    • icon

      String icon
      Default:
      ""
    • regex

      String regex
      Insert a regex expression which will be used to validate the text written in the box
      Default:
      ""
    • multiline

      boolean multiline
      Allow the text box to span multiple lines wrapping long text and accepting line breaks from the enter key and pasted \n / \r\n
      Default:
      false
    • category

      String category
      Default:
      "General"
    • categoryKey

      @Deprecated String categoryKey
      Deprecated.
      Default:
      ""
    • categoryTranslation

      @Deprecated boolean categoryTranslation
      Deprecated.
      OneConfig auto-translates category values that are translation keys so pass the key directly
      Default:
      false
    • subcategory

      String subcategory
      Default:
      "General"
    • subcategoryKey

      @Deprecated String subcategoryKey
      Deprecated.
      Default:
      ""
    • placeholder

      @TranslatedDefault("oneconfig.textinput.placeholder") String placeholder
      Default:
      "oneconfig.textinput.placeholder"
    • placeholderTranslation

      @Deprecated boolean placeholderTranslation
      Deprecated.
      OneConfig auto-translates placeholder values that are translation keys so pass the key directly
      Default:
      false
    • placeholderKey

      @Deprecated String placeholderKey
      Deprecated.
      Default:
      ""