Annotation Interface RangeNumberList


@Retention(RUNTIME) @Target(FIELD) @Documented public @interface RangeNumberList
Renders a user-editable list of ranges with each row being a pair of number inputs

The annotated field must be a flat numeric array such as int[] or float[] or a List of numbers holding each range's start then end so {0, 10, 20, 30} is the ranges 0-10 and 20-30

The field must hold an even number of values

See RangeSliderList for the slider variant

  • Element Details

    • title

      String title
    • description

      String description
      Default:
      ""
    • icon

      String icon
      Default:
      ""
    • category

      String category
      Default:
      "General"
    • subcategory

      String subcategory
      Default:
      "General"
    • min

      float min
      Default:
      0.0f
    • max

      float max
      Default:
      100.0f
    • step

      float step
      Amount the arrows on each input step by
      Default:
      1.0f
    • maxEntries

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

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

      String addText
      Label of the button that appends a new range
      Default:
      "Add"
    • formatter

      Class<? extends ValueFormatter> formatter
      Default:
      org.polyfrost.oneconfig.api.config.v1.ValueFormatter.class