Annotation Interface NumberList
Renders a user-editable list of numbers with each row being a number input with stepper arrows
The annotated field must be a numeric array such as int[] or float[] or
double[] or long[] or a List of numbers
Entries are stored in the element type of the field
For list fields the type is taken from the entries already present and falls back to
Integer when min()/max()/step() are whole numbers
This is the list counterpart of Number
See SliderList for the slider variant
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionLabel of the button that appends a new entrybooleanDeprecated.OneConfig auto-translates addText values that are translation keys so pass the key directlybooleanDeprecated.OneConfig auto-translates category values that are translation keys so pass the key directlybooleanDeprecated.OneConfig auto-translates description values that are translation keys so pass the key directlyClass<? extends ValueFormatter> booleanfloatintMaximum number of entries the user may add and0means unlimitedfloatbooleanAllow the user to drag entries to reorder themfloatAmount each press of the stepper arrows changes the entry by and0picks a sensible defaultbooleanDeprecated.translation keys will be translated by defaultbooleanDeprecated.OneConfig auto-translates title values that are translation keys so pass the key directly
-
Element Details
-
title
String title -
titleTranslation
Deprecated.OneConfig auto-translates title values that are translation keys so pass the key directly- Default:
false
-
description
String description- Default:
""
-
descriptionTranslation
Deprecated.OneConfig auto-translates description values that are translation keys so pass the key directly- Default:
false
-
icon
String icon- Default:
""
-
category
String category- Default:
"General"
-
categoryTranslation
Deprecated.OneConfig auto-translates category values that are translation keys so pass the key directly- Default:
false
-
subcategory
String subcategory- Default:
"General"
-
subcategoryTranslation
Deprecated.translation keys will be translated by default- Default:
false
-
min
float min- Default:
0.0f
-
max
float max- Default:
100.0f
-
step
float stepAmount each press of the stepper arrows changes the entry by and0picks a sensible default- Default:
0.0f
-
maxEntries
int maxEntriesMaximum number of entries the user may add and0means 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.OneConfig auto-translates addText values that are translation keys so pass the key directly- Default:
false
-
formatter
Class<? extends ValueFormatter> formatter- Default:
org.polyfrost.oneconfig.api.config.v1.ValueFormatter.class
-
fullWidth
boolean fullWidth- Default:
false
-