public final class ComboboxSearchOption extends ExtendedSearchOption
| Constructor and Description |
|---|
ComboboxSearchOption(String code,
String[] values,
String defaultValue,
String label)
Default constructor.
|
ComboboxSearchOption(String code,
String[] values,
String defaultValue,
String label,
boolean editable) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue()
Returns the initially selected value in the combo box.
|
String[] |
getValues()
Returns a String array containing the values displayed in the combo
box.
|
boolean |
isEditable() |
getCode, getDescription, getLabel, setDescription, toStringpublic ComboboxSearchOption(String code, String[] values, String defaultValue, String label)
code - Unique identifier for this option.values - List of values to display in the combo-box.
The value of this options from Query.getExtendedOptionValue(String). will be one of these.defaultValue - The initially selected value in the combo-box. Must be one of values.label - An option label to display next to the combo-box or null if no label.public ComboboxSearchOption(String code, String[] values, String defaultValue, String label, boolean editable)
code - Unique identifier for this option.values - List of values to display in the combo-box.
The value of this options from Query.getExtendedOptionValue(String). will be one of these.defaultValue - The initially selected value in the combo-box. Must be one of values.label - An option label to display next to the combo-box or null if no label.editable - Whether or not the combo-box that represents this option should editablepublic String[] getValues()
public String getDefaultValue()
public boolean isEditable()