Class ChoiceParameter

All Implemented Interfaces:
ExtensionPoint, Describable<ParameterDefinition>, Serializable, ScriptableParameter<Map<Object,Object>>, UnoChoiceParameter

public class ChoiceParameter extends AbstractScriptableParameter
A parameter that renders its options as a choice (select) HTML component.
Since:
0.1
Author:
Bruno P. Kinoshita
See Also:
  • Constructor Details

    • ChoiceParameter

      @Deprecated public ChoiceParameter(String name, String description, Script script, String choiceType, Boolean filterable)
      Deprecated.
      see JENKINS-32149
      Constructor called from Jelly with parameters.
      Parameters:
      name - name
      description - description
      script - script
      choiceType - choice type
      filterable - filter flag
    • ChoiceParameter

      @Deprecated public ChoiceParameter(String name, String description, String randomName, Script script, String choiceType, Boolean filterable)
      Deprecated.
      see JENKINS-31625
      Constructor called from Jelly with parameters.
      Parameters:
      name - name
      description - description
      randomName - parameter random generated name
      script - script
      choiceType - choice type
      filterable - filter flag
    • ChoiceParameter

      @DataBoundConstructor public ChoiceParameter(String name, String description, String randomName, Script script, String choiceType, Boolean filterable, Integer filterLength)
      Constructor called from Jelly with parameters.
      Parameters:
      name - name
      description - description
      randomName - parameter random generated name
      script - script
      choiceType - choice type
      filterable - filter flag
      filterLength - length when filter start filtering
  • Method Details

    • getChoiceType

      public String getChoiceType()
      Description copied from class: AbstractUnoChoiceParameter

      Gets the choice type.

      This method can be called from Javascript

      Specified by:
      getChoiceType in class AbstractUnoChoiceParameter
      Returns:
      choice type
    • getFilterable

      public boolean getFilterable()
      Get the filter flag.
      Returns:
      filter flag
    • getFilterLength

      public Integer getFilterLength()
      Get the filter length.
      Returns:
      filter length