public abstract class AbstractUnoChoiceParameter extends SimpleParameterDefinition implements UnoChoiceParameter
ParameterDefinition.ParameterDescriptorExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_VISIBLE_ITEM_COUNT |
static String |
ELEMENT_TYPE_FORMATTED_HIDDEN_HTML |
static String |
ELEMENT_TYPE_FORMATTED_HTML |
static String |
ELEMENT_TYPE_ORDERED_LIST |
static String |
ELEMENT_TYPE_TEXT_BOX |
static String |
ELEMENT_TYPE_UNORDERED_LIST |
protected static Logger |
LOGGER |
static String |
PARAMETER_TYPE_CHECK_BOX |
static String |
PARAMETER_TYPE_MULTI_SELECT |
static String |
PARAMETER_TYPE_RADIO |
static String |
PARAMETER_TYPE_SINGLE_SELECT |
LIST| Modifier | Constructor and Description |
|---|---|
protected |
AbstractUnoChoiceParameter(String name,
String description)
Deprecated.
to fix JENKINS-32149 (create random name only once - this is the parameter ID)
|
protected |
AbstractUnoChoiceParameter(String name,
String description,
String randomName)
Inherited constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static DescriptorExtensionList<ParameterDefinition,ParameterDefinition.ParameterDescriptor> |
all() |
ParameterValue |
createValue(org.kohsuke.stapler.StaplerRequest request,
net.sf.json.JSONObject json) |
ParameterValue |
createValue(String value) |
abstract String |
getChoiceType()
Gets the choice type.
|
ParameterDefinition.ParameterDescriptor |
getDescriptor() |
String |
getRandomName()
Gets the randomly generated parameter name.
|
createValue, createValuecopyWithDefaultValue, getDefaultParameterValue, getDescription, getFormattedDescription, getName, getTypeprotected static final Logger LOGGER
public static final String PARAMETER_TYPE_SINGLE_SELECT
public static final String PARAMETER_TYPE_MULTI_SELECT
public static final String PARAMETER_TYPE_CHECK_BOX
public static final String PARAMETER_TYPE_RADIO
public static final String ELEMENT_TYPE_TEXT_BOX
public static final String ELEMENT_TYPE_ORDERED_LIST
public static final String ELEMENT_TYPE_UNORDERED_LIST
public static final String ELEMENT_TYPE_FORMATTED_HTML
public static final String ELEMENT_TYPE_FORMATTED_HIDDEN_HTML
public static final int DEFAULT_MAX_VISIBLE_ITEM_COUNT
protected AbstractUnoChoiceParameter(String name, String description)
name - namedescription - description
FIXME: remove in new major releaseprotected AbstractUnoChoiceParameter(String name, String description, String randomName)
name - namedescription - descriptionrandomName - the parameter unique ID (a random uuid) created once per parameter. If blank or null
it will be created a new random parameter name that starts with choice-parameterpublic String getRandomName()
public ParameterValue createValue(String value)
createValue in class SimpleParameterDefinitionpublic ParameterValue createValue(org.kohsuke.stapler.StaplerRequest request, net.sf.json.JSONObject json)
createValue in class ParameterDefinitionpublic abstract String getChoiceType()
Gets the choice type.
This method can be called from Javascript
public ParameterDefinition.ParameterDescriptor getDescriptor()
getDescriptor in interface Describable<ParameterDefinition>getDescriptor in class ParameterDefinitionpublic static DescriptorExtensionList<ParameterDefinition,ParameterDefinition.ParameterDescriptor> all()
Copyright © 2016–2020. All rights reserved.