public class SelectOption extends java.lang.Object implements ISelectOption
Constructor and Description |
---|
SelectOption(java.lang.String theID,
java.lang.String theValue,
boolean theDefaultFlag)
Create a select option to be added to a list of selectable options.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getID()
Returns the identifier for this option.
|
java.lang.String |
getValue()
Returns the value for this option.
|
boolean |
isSelectedByDefault()
Returns a flag indicating whether this option is selected by default.
|
public SelectOption(java.lang.String theID, java.lang.String theValue, boolean theDefaultFlag)
theID
- The identifier of this select option.theValue
- The text that should be displayed to the user.theDefaultFlag
- A flag indicating whether this option is selected by default.public java.lang.String getID()
ISelectOption
getID
in interface ISelectOption
public java.lang.String getValue()
ISelectOption
getValue
in interface ISelectOption
public boolean isSelectedByDefault()
ISelectOption
isSelectedByDefault
in interface ISelectOption