public class OptionListRenderingInformation extends ParameterRenderingInformation implements Serializable
| Constructor and Description |
|---|
OptionListRenderingInformation()
Defines all keys as
null. |
OptionListRenderingInformation(String labelKey,
String descriptionKey,
List optionLabelKeys)
Create a new
OptionListRenderingInformation. |
| Modifier and Type | Method and Description |
|---|---|
void |
applyResourceBundle(ResourceBundle resourceBundle)
Applies the given resource bundle to this object so this object can obtain the actual string values for its keys.
|
List |
getOptionLabelKeys()
Returns the keys that will be used to look up each option item's label in a
resource bundle. |
List |
getOptionLabels()
Gets the option label strings as found in the resource bundle.
|
void |
setOptionLabels(List<String> optionLabels)
Explicitly sets the option labels strings.
|
getDescription, getDescriptionKey, getLabel, getLabelKey, isHidden, isObfuscated, isReadOnly, setDescription, setHidden, setLabel, setObfuscated, setReadOnlypublic OptionListRenderingInformation()
null. See
OptionListRenderingInformation(String, String, List) for more information.public OptionListRenderingInformation(String labelKey, String descriptionKey, List optionLabelKeys)
OptionListRenderingInformation. This constructor takes keys to labels and descriptions, and
also keys to labels for displaying the rows of a dropdown.labelKey - descriptionKey - optionLabelKeys - list of keys that represent each option - the items in the list must be of type StringParameterRenderingInformation.ParameterRenderingInformation(String, String)public List getOptionLabelKeys()
resource bundle.public List getOptionLabels()
This will return null until
a resource bundle has been applied to this object. The returned list
may also be explicitly set via setOptionLabels(List).
nullpublic void setOptionLabels(List<String> optionLabels)
apply a resource bundle.optionLabels - public void applyResourceBundle(ResourceBundle resourceBundle) throws MissingResourceException
ParameterRenderingInformation.applyResourceBundle(ResourceBundle) for more information on how this
method works.applyResourceBundle in class ParameterRenderingInformationresourceBundle - the resource bundle where the key values are found (may be null)MissingResourceException - if a key was not found in the resource bundleParameterRenderingInformation.applyResourceBundle(ResourceBundle)Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.