Annotation Interface RangeSliderList


@Retention(RUNTIME) @Target(FIELD) @Documented public @interface RangeSliderList
Renders a user-editable list of ranges with each row being a two-handle slider with a value field for each end

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 RangeNumberList for the variant without the track

  • 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
      Value the handles snap to multiples of and 0 slides continuously
      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
    • bounds

      Class<? extends SliderBounds> bounds
      Default:
      org.polyfrost.oneconfig.api.config.v1.SliderBounds.class
    • fullWidth

      boolean fullWidth
      Default:
      false