public interface Suggester
Modifier and Type | Method and Description |
---|---|
String |
applySuggestion(Suggestion sugg,
String text,
int cursor)
Applies the suggestion to the text.
|
List<Suggestion> |
getSuggestions(String text,
int cursor)
Returns a list of
Suggestion s based on text and cursor position. |
List<Suggestion> getSuggestions(String text, int cursor)
Suggestion
s based on text and cursor position.text
- cursor
- Suggestion
s, empty list = no suggestionsString applySuggestion(Suggestion sugg, 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
- Copyright © 2020 Magnolia International Ltd.. All rights reserved.