Annotation Interface File


@Retention(RUNTIME) @Target(FIELD) @Documented public @interface File
  • 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:
      ""
    • types

      String[] types
      The file extensions to filter the dialog by such as {".png", ".jpg"}

      Entries may be written as ".png" or "png" or "*.png" and they are all normalised to the *.ext form TinyFdApi expects

      Leave empty to allow any file

      Default:
      {}
    • filterName

      String filterName
      A human-readable description for the types() filter such as "Images"
      Default:
      ""
    • directory

      boolean directory
      Select a directory instead of a file

      When true the types() value is ignored

      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:
      ""
    • subcategoryTranslation

      @Deprecated boolean subcategoryTranslation
      Deprecated.
      translation keys will be translated by default
      Default:
      false
    • placeholder

      @TranslatedDefault("oneconfig.filepicker.placeholder") String placeholder
      Default:
      "oneconfig.filepicker.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:
      ""
    • fullWidth

      boolean fullWidth
      Default:
      false