public class VComboBox.ComboBoxSuggestion extends Object implements com.google.gwt.user.client.ui.SuggestOracle.Suggestion, com.google.gwt.user.client.Command
| Constructor and Description |
|---|
ComboBoxSuggestion(String key,
String caption,
String style,
String untranslatedIconUri)
Constructor for a single suggestion.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
execute()
Executes a selection of this item.
|
String |
getDisplayString()
Gets the visible row in the popup as a HTML string.
|
String |
getIconUri()
Get the URI of the icon.
|
String |
getOptionKey()
Get the option key which represents the item on the server side.
|
String |
getReplacementString()
Get a string that represents this item.
|
String |
getStyle()
Gets the style set for this suggestion item.
|
int |
hashCode() |
String |
toString() |
public ComboBoxSuggestion(String key, String caption, String style, String untranslatedIconUri)
key - item key, empty string for a special null item not in
containercaption - item captionstyle - item style name, can be empty stringuntranslatedIconUri - icon URI or nullpublic String getDisplayString()
getDisplayString in interface com.google.gwt.user.client.ui.SuggestOracle.Suggestionpublic String getReplacementString()
getReplacementString in interface com.google.gwt.user.client.ui.SuggestOracle.Suggestionpublic String getOptionKey()
public String getIconUri()
public String getStyle()
ComboBox.ItemStyleProvider.
The returned style is prefixed by v-filterselect-item-.null to not apply any
custom style.public void execute()
execute in interface com.google.gwt.core.client.Scheduler.ScheduledCommandexecute in interface com.google.gwt.user.client.CommandCopyright © 2023 Vaadin Ltd. All rights reserved.