public interface Suggester
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
applySuggestion(Suggestion sugg,
java.lang.String text,
int cursor)
Applies the suggestion to the text.
|
java.util.List<Suggestion> |
getSuggestions(java.lang.String text,
int cursor)
Returns a list of
Suggestions based on text and cursor position. |
java.util.List<Suggestion> getSuggestions(java.lang.String text, int cursor)
Suggestions based on text and cursor position.text - cursor - Suggestions, empty list = no suggestionsjava.lang.String applySuggestion(Suggestion sugg, java.lang.String text, int cursor)
getSuggestions(String, int) earlier.
sugg is one of the objects received from getSuggestions(String, int)
So if you gave a subclass of Suggestion, that you shall receive.sugg - text - cursor -