Class Suggester.SuggestionContext
java.lang.Object
io.jmix.flowui.kit.component.codeeditor.autocomplete.Suggester.SuggestionContext
- Enclosing interface:
- Suggester
A class that describes the current state of the client-side of the
JmixCodeEditor
component used
to prepare suggestions.-
Field Details
-
text
-
cursorPosition
protected int cursorPosition -
prefix
-
-
Constructor Details
-
SuggestionContext
- Parameters:
text
- current value from the client-side of the editor (may not match the server-side value)cursorPosition
- current cursor position in the editorprefix
- literal before current cursor position
-
-
Method Details
-
getText
- Returns:
- current value from client-side of the editor
-
getCursorPosition
public int getCursorPosition()- Returns:
- current cursor position in the editor
-
getPrefix
- Returns:
- literal before current cursor position
-