Annotation Interface SliderList


@Retention(RUNTIME) @Target(FIELD) @Documented public @interface SliderList
Renders a user-editable list of numbers with each row being a slider with a value field beside it

The annotated field must be a numeric array such as int[] or float[] or double[] or long[] or a List of numbers

See NumberList for how the element type is decided and for the plain number-input variant

  • Element Details

    • title

      String title
    • titleTranslation

      @Deprecated boolean titleTranslation
      Deprecated.
      OneConfig auto-translates title values that are translation keys so pass the key directly
      Default:
      false
    • description

      String description
      Default:
      ""
    • descriptionTranslation

      @Deprecated boolean 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 boolean 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 boolean subcategoryTranslation
      Deprecated.
      translation keys will be translated by default
      Default:
      false
    • min

      float min
      Default:
      0.0f
    • max

      float max
      Default:
      100.0f
    • step

      float step
      Value the slider snaps to multiples of and 0 slides continuously
      Default:
      1.0f
    • maxEntries

      int maxEntries
      Maximum number of entries the user may add and 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

      @Deprecated boolean addTextTranslation
      Deprecated.
      OneConfig auto-translates addText values that are translation keys so pass the key directly
      Default:
      false
    • 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