Annotation Interface FileList
Renders a user-editable list of file (or directory) pickers. The annotated field must be
String[] or a List<String>, each entry holding one path.
This is the list counterpart of File: rows can be added, removed and dragged into a
different order, and the property value is the list of paths in display order.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionLabel of the button that appends a new entry.booleanDeprecated.No longer needed.booleanDeprecated.No longer needed.booleanDeprecated.No longer needed.booleanSelect directories instead of files.A human-readable description for thetypes()filter, e.g.intMaximum number of entries the user may add.booleanDeprecated.No longer needed.booleanAllow the user to drag entries to reorder them.booleanDeprecated.translation keys will be translated by default.booleanDeprecated.No longer needed.String[]The file extensions to filter the dialog by, e.g.
-
Element Details
-
title
String title -
titleTranslation
Deprecated.No longer needed. OneConfig now checks whether the given title is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the title and remove this flag.- Default:
false
-
description
String description- Default:
""
-
descriptionTranslation
Deprecated.No longer needed. OneConfig now checks whether the given description is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the description and remove this flag.- Default:
false
-
icon
String icon- Default:
""
-
category
String category- Default:
"General"
-
categoryTranslation
Deprecated.No longer needed. OneConfig now checks whether the given category is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the category and remove this flag.- Default:
false
-
subcategory
String subcategory- Default:
"General"
-
subcategoryTranslation
Deprecated.translation keys will be translated by default.- Default:
false
-
types
String[] typesThe file extensions to filter the dialog by, e.g.{".png", ".jpg"}. Entries may be written as".png","png"or"*.png"; they are all normalised to the*.extform tinyfd expects. Leave empty to allow any file.- Default:
{}
-
filterName
String filterNameA human-readable description for thetypes()filter, e.g."Images".- Default:
""
-
directory
boolean directorySelect directories instead of files. Whentrue,types()is ignored.- Default:
false
-
placeholder
- Default:
"oneconfig.filepicker.placeholder"
-
placeholderTranslation
Deprecated.No longer needed. OneConfig now checks whether the given placeholder is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the placeholder and remove this flag.- Default:
false
-
maxEntries
int maxEntriesMaximum number of entries the user may add.0means unlimited.- Default:
0
-
reorderable
boolean reorderableAllow the user to drag entries to reorder them.- Default:
true
-
addText
String addTextLabel of the button that appends a new entry.- Default:
"Add"
-
addTextTranslation
Deprecated.No longer needed. OneConfig now checks whether the given addText is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the addText and remove this flag.- Default:
false
-