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
-
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 ofSuggestion
s based on text and cursor position.
-
Constructor Details
-
SourceCodeEditorSuggester
protected SourceCodeEditorSuggester()
-
-
Method Details
-
getSuggestions
Description copied from interface:Suggester
Returns a list ofSuggestion
s based on text and cursor position.- Specified by:
getSuggestions
in interfaceSuggester
- Returns:
- list of
Suggestion
s, empty list = no suggestions
-
applySuggestion
Description copied from interface:Suggester
Applies 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:
applySuggestion
in interfaceSuggester
- Returns:
- Text after the suggestion has been applied.
-