Annotation Interface ColorList
Renders a user-editable list of colors with each row opening the usual color picker
The annotated field must be int[] or a List<Integer> of packed ARGB values
java.awt.Color[] is also accepted
Chroma is not offered here because there is nowhere to store the per-entry chroma flag
Use a single Color option for that
This is the list counterpart of Color
Rows can be added and removed and dragged into a different order
The property value is the list of colors in display order
-
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 directlybooleanWhether the picker exposes an opacity controlbooleanDeprecated.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 directlybooleanintMaximum number of entries the user may add and0means unlimitedbooleanAllow the user to drag entries to reorder thembooleanDeprecated.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
-
alpha
boolean alphaWhether the picker exposes an opacity control- Default:
true
-
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
-
fullWidth
boolean fullWidth- Default:
false
-