Annotation Interface NumberList
Renders a user-editable list of numbers, each row being a number input with stepper arrows.
The annotated field must be a numeric array (int[], float[], double[],
long[], ...) or a List of numbers. Entries are stored in the field's element
type; for list fields the type is taken from the entries already present, falling 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 entry.booleanbooleanbooleanfloatintMaximum number of entries the user may add.floatbooleanAllow the user to drag entries to reorder them.floatAmount each press of the stepper arrows changes the entry by.booleanboolean
-
Element Details
-
title
String title -
titleTranslation
boolean titleTranslation- Default:
false
-
description
String description- Default:
""
-
descriptionTranslation
boolean descriptionTranslation- Default:
false
-
icon
String icon- Default:
""
-
category
String category- Default:
"General"
-
categoryTranslation
boolean categoryTranslation- Default:
false
-
subcategory
String subcategory- Default:
"General"
-
subcategoryTranslation
boolean subcategoryTranslation- 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.0picks a sensible default.- Default:
0.0f
-
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
boolean addTextTranslation- Default:
false
-