Package io.jmix.ui.component.impl
Class SourceCodeEditorImpl.SourceCodeEditorSuggester
java.lang.Object
io.jmix.ui.component.impl.SourceCodeEditorImpl.SourceCodeEditorSuggester
- All Implemented Interfaces:
Suggester
- Enclosing class:
- SourceCodeEditorImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplySuggestion(Suggestion suggestion, String text, int cursor) Applies the suggestion to the text.getSuggestions(String text, int cursor) Returns a list ofSuggestions based on text and cursor position.
-
Constructor Details
-
SourceCodeEditorSuggester
protected SourceCodeEditorSuggester()
-
-
Method Details
-
getSuggestions
Description copied from interface:SuggesterReturns a list ofSuggestions based on text and cursor position.- Specified by:
getSuggestionsin interfaceSuggester- Returns:
- list of
Suggestions, empty list = no suggestions
-
applySuggestion
Description copied from interface:SuggesterApplies the suggestion to the text. text and cursor are the same that were given toSuggester.getSuggestions(String, int)earlier. sugg is one of the objects received fromSuggester.getSuggestions(String, int)So if you gave a subclass ofSuggestion, that you shall receive.- Specified by:
applySuggestionin interfaceSuggester- Returns:
- Text after the suggestion has been applied.
-