|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.communications.command.param.ParameterRenderingInformation
org.rhq.enterprise.communications.command.param.OptionListRenderingInformation
public class OptionListRenderingInformation
Class used to encapsulate information specific to lists of options.
| Constructor Summary | |
|---|---|
OptionListRenderingInformation()
Defines all keys as null. |
|
OptionListRenderingInformation(String labelKey,
String descriptionKey,
List optionLabelKeys)
Create a new OptionListRenderingInformation. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.rhq.enterprise.communications.command.param.ParameterRenderingInformation |
|---|
getDescription, getDescriptionKey, getLabel, getLabelKey, isHidden, isObfuscated, isReadOnly, setDescription, setHidden, setLabel, setObfuscated, setReadOnly |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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)| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||