SelectOption Constructors
The following are constructors for SelectOption.
- SelectOption(String, String)
Creates a new instance of the SelectOption class using the specified value and label. - SelectOption(String, String, Boolean)
Creates a new instance of the SelectOption class using the specified value, label, and disabled setting.
SelectOption Methods
The following are methods for SelectOption. All are instance methods.
- getDisabled()
Returns the current value of the SelectOption object's isDisabled attribute. - getEscapeItem()
Returns the current value of the SelectOption object's itemEscaped attribute. - getLabel()
Returns the option label that is displayed to the user. - getValue()
Returns the option value that is returned to the controller if a user selects the option. - setDisabled(Boolean)
Sets the value of the SelectOption object's isDisabled attribute. - setEscapeItem(Boolean)
Sets the value of the SelectOption object's itemEscaped attribute. - setLabel(String)
Sets the value of the option label that is displayed to the user. - setValue(String)
Sets the value of the option value that is returned to the controller if a user selects the option.
No comments:
Post a Comment