public class Suggestion extends Object
Constructor and Description |
---|
Suggestion(String displayText,
String descriptionText) |
Suggestion(String displayText,
String descriptionText,
String suggestionText)
If suggestionText is "cat", the suggestion popup will stay there
if user types "c" "ca" or "cat".
|
Modifier and Type | Method and Description |
---|---|
TransportSuggestion |
asTransport(int index) |
String |
getDescriptionText() |
String |
getDisplayText() |
String |
getSuggestionText() |
public Suggestion(String displayText, String descriptionText)
displayText
- the text shown in the popup listdescriptionText
- a longer descriptionpublic Suggestion(String displayText, String descriptionText, String suggestionText)
displayText
- the text shown in the popup listdescriptionText
- a longer descriptionsuggestionText
- public TransportSuggestion asTransport(int index)
public String getDisplayText()
public String getDescriptionText()
public String getSuggestionText()
Copyright © 2017 Magnolia International Ltd.. All rights reserved.