Interface SelectOptionOperation


public interface SelectOptionOperation
Operation for a lightweight selection of a list of simple options.
Since:
5.2.508
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Operation for a lightweight selection of a list of simple options.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addOption(@NotNull String label, @NotNull String value)
    Configures one of the options the user should select from.
    @Nullable String
    Performs this operation based on the previously configured settings, and returns the value of the user selection if there is any.
  • Field Details

  • Method Details

    • addOption

      void addOption(@NotNull @NotNull String label, @NotNull @NotNull String value)
      Configures one of the options the user should select from.
      Parameters:
      label - The label of the option.
      value - The value of the option.
      Since:
      5.2.508
    • perform

      @Nullable @Nullable String perform()
      Performs this operation based on the previously configured settings, and returns the value of the user selection if there is any.
      Returns:
      The value of the option the user has chosen, or null for a canceled selection.
      Since:
      5.2.508