Package org.biouno.unochoice
Class ChoiceParameter
- All Implemented Interfaces:
ExtensionPoint,Describable<ParameterDefinition>,Serializable,ScriptableParameter<Map<Object,,Object>> UnoChoiceParameter
A parameter that renders its options as a choice (select) HTML component.
- Since:
- 0.1
- Author:
- Bruno P. Kinoshita
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.model.ParameterDefinition
ParameterDefinition.ParameterDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class org.biouno.unochoice.AbstractScriptableParameter
EQUALS, JENKINS_BUILD_VARIABLE_NAME, JENKINS_PARAMETER_VARIABLE_NAME, JENKINS_PROJECT_VARIABLE_NAME, script, SEPARATORFields inherited from class org.biouno.unochoice.AbstractUnoChoiceParameter
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_SELECTFields inherited from class hudson.model.ParameterDefinition
LIST -
Constructor Summary
ConstructorsConstructorDescriptionChoiceParameter(String name, String description, String randomName, Script script, String choiceType, Boolean filterable) Deprecated.see JENKINS-31625ChoiceParameter(String name, String description, String randomName, Script script, String choiceType, Boolean filterable, Integer filterLength) Constructor called from Jelly with parameters.ChoiceParameter(String name, String description, Script script, String choiceType, Boolean filterable) Deprecated.see JENKINS-32149 -
Method Summary
Modifier and TypeMethodDescriptionGets the choice type.booleanGet the filter flag.Get the filter length.Methods inherited from class org.biouno.unochoice.AbstractScriptableParameter
detectProject, getChoices, getChoices, getChoicesAsString, getChoicesAsString, getDefaultParameterValue, getParameters, getScript, getVisibleItemCountMethods inherited from class org.biouno.unochoice.AbstractUnoChoiceParameter
createValue, createValue, getDescriptor, getRandomNameMethods inherited from class hudson.model.SimpleParameterDefinition
createValue, createValueMethods inherited from class hudson.model.ParameterDefinition
all, copyWithDefaultValue, createValue, createValue, equals, getDescription, getFormattedDescription, getName, getType, hashCode, isValid, setDescription
-
Constructor Details
-
ChoiceParameter
@Deprecated public ChoiceParameter(String name, String description, Script script, String choiceType, Boolean filterable) Deprecated.see JENKINS-32149Constructor called from Jelly with parameters.- Parameters:
name- namedescription- descriptionscript- scriptchoiceType- choice typefilterable- filter flag
-
ChoiceParameter
@Deprecated public ChoiceParameter(String name, String description, String randomName, Script script, String choiceType, Boolean filterable) Deprecated.see JENKINS-31625Constructor called from Jelly with parameters.- Parameters:
name- namedescription- descriptionrandomName- parameter random generated namescript- scriptchoiceType- choice typefilterable- 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- namedescription- descriptionrandomName- parameter random generated namescript- scriptchoiceType- choice typefilterable- filter flagfilterLength- length when filter start filtering
-
-
Method Details
-
getChoiceType
Description copied from class:AbstractUnoChoiceParameterGets the choice type.
This method can be called from Javascript
- Specified by:
getChoiceTypein classAbstractUnoChoiceParameter- Returns:
- choice type
-
getFilterable
public boolean getFilterable()Get the filter flag.- Returns:
- filter flag
-
getFilterLength
Get the filter length.- Returns:
- filter length
-