public class CascadeChoiceParameter extends AbstractCascadableParameter
A choice parameter, that gets updated when another parameter changes. The simplest use case for this, would be having a list of states, and when the user selected a state it would trigger an update of the city fields.
The state parameter would be a choice parameter, and the city parameter would be a cascade choice parameter, that referenced the former.
Its options are retrieved from the evaluation of a Groovy script.
Modifier and Type | Class and Description |
---|---|
static class |
CascadeChoiceParameter.DescriptImpl |
parameters
JENKINS_BUILD_VARIABLE_NAME, JENKINS_PROJECT_VARIABLE_NAME, script, SEPARATOR
DEFAULT_MAX_VISIBLE_ITEM_COUNT, ELEMENT_TYPE_FORMATTED_HIDDEN_HTML, ELEMENT_TYPE_FORMATTED_HTML, ELEMENT_TYPE_ORDERED_LIST, ELEMENT_TYPE_TEXT_BOX, ELEMENT_TYPE_UNORDERED_LIST, LOGGER, PARAMETER_TYPE_CHECK_BOX, PARAMETER_TYPE_MULTI_SELECT, PARAMETER_TYPE_RADIO, PARAMETER_TYPE_SINGLE_SELECT
Constructor and Description |
---|
CascadeChoiceParameter(String name,
String description,
Script script,
String choiceType,
String referencedParameters,
Boolean filterable)
Deprecated.
see JENKINS-32149
|
CascadeChoiceParameter(String name,
String description,
String randomName,
Script script,
String choiceType,
String referencedParameters,
Boolean filterable)
Constructor called from Jelly with parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
getChoiceType()
Gets the choice type.
|
Boolean |
getFilterable()
Gets the filter flag.
|
doUpdate, getChoicesForUI, getParameters, getReferencedParameters, getReferencedParametersAsArray
getChoices, getChoices, getChoicesAsString, getChoicesAsString, getDefaultParameterValue, getScript, getVisibleItemCount
all, createValue, createValue, getDescriptor, getRandomName
copyWithDefaultValue, getDescription, getFormattedDescription, getName, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChoices
public CascadeChoiceParameter(String name, String description, Script script, String choiceType, String referencedParameters, Boolean filterable)
name
- namedescription
- descriptionscript
- scriptchoiceType
- choice typereferencedParameters
- referenced parametersfilterable
- filter flag@DataBoundConstructor public CascadeChoiceParameter(String name, String description, String randomName, Script script, String choiceType, String referencedParameters, Boolean filterable)
name
- namedescription
- descriptionrandomName
- parameter random generated name (uuid)script
- scriptchoiceType
- choice typereferencedParameters
- referenced parametersfilterable
- filter flagpublic String getChoiceType()
AbstractUnoChoiceParameter
Gets the choice type.
This method can be called from Javascript
getChoiceType
in class AbstractUnoChoiceParameter
public Boolean getFilterable()
Copyright © 2016. All rights reserved.