Annotation Interface ColorList


@Retention(RUNTIME) @Target(FIELD) @Documented public @interface ColorList
Renders a user-editable list of colors, 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, as 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, removed and dragged into a different order, and the property value is the list of colors in display order.

  • 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
    • alpha

      boolean alpha
      Whether the picker exposes an opacity control.
      Default:
      true
    • maxEntries

      int maxEntries
      Maximum number of entries the user may add. 0 means unlimited.
      Default:
      0
    • reorderable

      boolean reorderable
      Allow the user to drag entries to reorder them.
      Default:
      true
    • addText

      String addText
      Label of the button that appends a new entry.
      Default:
      "Add"
    • addTextTranslation

      boolean addTextTranslation
      Default:
      false