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()
IDisplayObject
getName
in interface IDisplayObject
public java.lang.String getValue()
IDisplayObject
getValue
in interface IDisplayObject
public java.lang.String getCaption()
ITextDisplayObject
getCaption
in interface ITextDisplayObject
public void addOption(ISelectOption theSelectOption)
theSelectOption
- The option to be added.public ISelectOption[] getOptions()
ISingleSelectDisplayObject
getOptions
in interface ISingleSelectDisplayObject