public class ComboListParameter extends PanelProviderParameter
SCOPE_BOTH, SCOPE_INSTANCE, SCOPE_PANEL
Constructor and Description |
---|
ComboListParameter(PanelProvider provider,
ComboListParameterDataSupplier dataSupplier)
Constructs a PanelProviderParameter
|
ComboListParameter(PanelProvider provider,
String id,
boolean required,
ComboListParameterDataSupplier dataSupplier,
boolean i18n)
Constructs a PanelProviderParameter
|
ComboListParameter(PanelProvider provider,
String id,
boolean required,
String defaultValue,
ComboListParameterDataSupplier dataSupplier,
boolean i18n)
Constructs a PanelProviderParameter
|
Modifier and Type | Method and Description |
---|---|
protected String |
getDefaultValueText() |
boolean |
isValid(String value)
Validates a string entered as a parameter value
|
String |
readFromRequest(javax.servlet.http.HttpServletRequest req)
Reads the value from the request submitted
|
String |
renderHTML(javax.servlet.http.HttpServletRequest req,
PanelInstance instance,
PanelProviderParameter param,
String value)
Renders a form field to enter this parameter's value
|
static String |
value(String value)
Returns the parameter value as a String, given the parameter value.
|
clone, equals, escapeParameterValue, getDefaultValue, getDefaultValue, getDescription, getDescription, getId, getProvider, getScope, isEmpty, isI18n, isRequired, isSystemParameter, setDefaultValue, setDefaultValue, setI18n, setId, setRequired, setScope, setSystemParameter
public ComboListParameter(PanelProvider provider, ComboListParameterDataSupplier dataSupplier)
provider
- Panel provider where the parameter applies.dataSupplier
- Object that supplies data to construct the list of values shown.public ComboListParameter(PanelProvider provider, String id, boolean required, ComboListParameterDataSupplier dataSupplier, boolean i18n)
provider
- Panel provider where the parameter applies.id
- Parameter identifiear. Panels can obtain the parameter value using this id.required
- Indicates if the parameter is required, that is, the panel will not be properly configured is this parameter is not set.i18n
- Indicates if parameter supports internationalization, that is, different values for different languages.dataSupplier
- Object that supplies data to construct the list of values shown.public ComboListParameter(PanelProvider provider, String id, boolean required, String defaultValue, ComboListParameterDataSupplier dataSupplier, boolean i18n)
provider
- Panel provider where the parameter applies.id
- Parameter identifiear. Panels can obtain the parameter value using this id.required
- Indicates if the parameter is required, that is, the panel will not be properly configured is this parameter is not set.i18n
- Indicates if parameter supports internationalization, that is, different values for different languages.dataSupplier
- Object that supplies data to construct the list of values shown.defaultValue
- Default value for the parameterpublic boolean isValid(String value)
PanelProviderParameter
isValid
in class PanelProviderParameter
value
- value to validatepublic String renderHTML(javax.servlet.http.HttpServletRequest req, PanelInstance instance, PanelProviderParameter param, String value)
PanelProviderParameter
renderHTML
in class PanelProviderParameter
req
- Http request in useinstance
- panel instanceparam
- this same parametervalue
- parameter valuepublic String readFromRequest(javax.servlet.http.HttpServletRequest req)
PanelProviderParameter
readFromRequest
in class PanelProviderParameter
protected String getDefaultValueText()
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.