Annotation Interface DynamicComboBox


@Retention(RUNTIME) @Target(FIELD) public @interface DynamicComboBox
Renders a config field as a combo box whose values come from a config method.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Stable storage key for the config value.
    User-facing label.
    No-argument config method returning an array or iterable of choices.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Text for the empty selection.
    Optional no-argument method called on each choice to get the display label.
    Optional tooltip text.
    Optional no-argument method called on each choice to get the persisted value.
  • Element Details

    • key

      String key
      Stable storage key for the config value.
    • label

      String label
      User-facing label.
    • tooltip

      String tooltip
      Optional tooltip text.
      Default:
      ""
    • values

      String values
      No-argument config method returning an array or iterable of choices.
    • value

      String value
      Optional no-argument method called on each choice to get the persisted value.
      Default:
      ""
    • labelMethod

      String labelMethod
      Optional no-argument method called on each choice to get the display label.
      Default:
      ""
    • emptyLabel

      String emptyLabel
      Text for the empty selection.
      Default:
      "Select"