public interface Lookup
Modifier and Type | Field and Description |
---|---|
static char |
AUTO_INSERT_SELECT_CHAR |
static char |
COMPLETE_STATEMENT_SELECT_CHAR |
static char |
NORMAL_SELECT_CHAR |
static char |
REPLACE_SELECT_CHAR |
Modifier and Type | Method and Description |
---|---|
void |
addLookupListener(LookupListener listener) |
java.util.List<java.lang.String> |
getAdvertisements() |
java.awt.Rectangle |
getBounds() |
LookupElement |
getCurrentItem() |
java.awt.Rectangle |
getCurrentItemBounds() |
Editor |
getEditor()
Consider using
getTopLevelEditor() if you don't need injected editor. |
java.util.List<LookupElement> |
getItems() |
int |
getLookupStart() |
Project |
getProject() |
PsiElement |
getPsiElement() |
PsiFile |
getPsiFile() |
Editor |
getTopLevelEditor() |
boolean |
isCompletion() |
boolean |
isFocused() |
boolean |
isPositionedAboveCaret() |
boolean |
isSelectionTouched() |
PrefixMatcher |
itemMatcher(LookupElement item) |
java.lang.String |
itemPattern(LookupElement element) |
void |
removeLookupListener(LookupListener listener) |
static final char NORMAL_SELECT_CHAR
static final char REPLACE_SELECT_CHAR
static final char COMPLETE_STATEMENT_SELECT_CHAR
static final char AUTO_INSERT_SELECT_CHAR
int getLookupStart()
getTopLevelEditor()
which this lookup's left side should be aligned with. Note that if the lookup doesn't fit
the screen due to its dimensions, the actual position might differ from this editor offset.LookupElement getCurrentItem()
void addLookupListener(LookupListener listener)
void removeLookupListener(LookupListener listener)
java.awt.Rectangle getBounds()
java.awt.Rectangle getCurrentItemBounds()
boolean isPositionedAboveCaret()
PsiElement getPsiElement()
getLookupStart()
) in getPsiFile()
result.Editor getEditor()
getTopLevelEditor()
if you don't need injected editor.Editor getTopLevelEditor()
Project getProject()
PsiFile getPsiFile()
getEditor()
boolean isCompletion()
java.util.List<LookupElement> getItems()
boolean isFocused()
java.lang.String itemPattern(LookupElement element)
PrefixMatcher itemMatcher(LookupElement item)
boolean isSelectionTouched()
java.util.List<java.lang.String> getAdvertisements()