public abstract class AbstractUnoChoiceParameter extends hudson.model.SimpleParameterDefinition implements UnoChoiceParameter
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 |
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 hudson.DescriptorExtensionList<hudson.model.ParameterDefinition,hudson.model.ParameterDefinition.ParameterDescriptor> |
all() |
hudson.model.ParameterValue |
createValue(org.kohsuke.stapler.StaplerRequest request,
net.sf.json.JSONObject json) |
hudson.model.ParameterValue |
createValue(String value) |
abstract String |
getChoiceType()
Gets the choice type.
|
hudson.model.ParameterDefinition.ParameterDescriptor |
getDescriptor() |
String |
getRandomName()
Gets the randomly generated parameter name.
|
protected 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 hudson.model.ParameterValue createValue(String value)
createValue
in class hudson.model.SimpleParameterDefinition
public hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest request, net.sf.json.JSONObject json)
createValue
in class hudson.model.ParameterDefinition
public abstract String getChoiceType()
Gets the choice type.
This method can be called from Javascript
public hudson.model.ParameterDefinition.ParameterDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.model.ParameterDefinition>
getDescriptor
in class hudson.model.ParameterDefinition
public static hudson.DescriptorExtensionList<hudson.model.ParameterDefinition,hudson.model.ParameterDefinition.ParameterDescriptor> all()
Copyright © 2016. All rights reserved.