AutoCompleteSuggestion
com.jsmacrosce.jsmacros.client.gui.editor.highlighting.AutoCompleteSuggestion
Describes an editor autocomplete replacement and its dropdown label.
js
const Suggestion = Java.type("com.jsmacrosce.jsmacros.client.gui.editor.highlighting.AutoCompleteSuggestion");
const item = new Suggestion(0, "Chat.log");Constructors
new AutoCompleteSuggestion
Creates a suggestion whose label is styled from its replacement text.
Parameters:
startIndex: zero-based UTF-16 index where replacement beginssuggestion: replacement string
Uses the supplied component as the dropdown label, separately from the replacement string.
Parameters:
startIndex: zero-based UTF-16 index where replacement beginssuggestion: replacement stringdisplayText: component shown in the dropdown
Fields
displayText
startIndex
Zero-based UTF-16 index where replacement begins; acceptance replaces through the cursor index.