public class SingleSelectDisplayObject extends java.lang.Object implements ISingleSelectDisplayObject
| Constructor and Description |
|---|
SingleSelectDisplayObject(java.lang.String theCaption,
java.lang.String theName)
Creates a single-select display object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(ISelectOption theSelectOption)
Adds a selectable option to the list of available selections.
|
java.lang.String |
getCaption()
Returns the caption for this display object.
|
java.lang.String |
getName()
Returns the name of the display object.
|
ISelectOption[] |
getOptions()
Returns the options that are available for the user to select.
|
java.lang.String |
getValue()
Returns the value that is currently set.
|
public SingleSelectDisplayObject(java.lang.String theCaption,
java.lang.String theName)
theCaption - The label of the single-select display object.theName - The name of the single-select display object.public java.lang.String getName()
IDisplayObjectgetName in interface IDisplayObjectpublic java.lang.String getValue()
IDisplayObjectgetValue in interface IDisplayObjectpublic java.lang.String getCaption()
ITextDisplayObjectgetCaption in interface ITextDisplayObjectpublic void addOption(ISelectOption theSelectOption)
theSelectOption - The option to be added.public ISelectOption[] getOptions()
ISingleSelectDisplayObjectgetOptions in interface ISingleSelectDisplayObject