public class SelectOption extends Object
Constructor and Description |
---|
SelectOption(Object value,
String label)
Enabled, not selected by default
|
SelectOption(Object value,
String label,
boolean selected)
Creates new instance with all properties.
|
SelectOption(String value)
Value is used for both: value and label.
|
Modifier and Type | Method and Description |
---|---|
String |
getLabel() |
String |
getValue() |
boolean |
isEnabled() |
boolean |
isSelected() |
void |
setEnabled(boolean enabled) |
void |
setSelected(boolean selected) |
public SelectOption(String value)
value
- value and label to display (will be converted to stringpublic SelectOption(Object value, String label)
value
- option value (will be converted to stringlabel
- option labelCopyright © 2020 JavaLite. All rights reserved.