public final class LookupElementBuilder extends LookupElement
LookupElementDecorator
,
PrioritizedLookupElement
EMPTY_ARRAY
as, as, getAutoCompletionPolicy, isValid, isWorthShowingInAutoPopup, requiresCommittedDocuments
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
public static LookupElementBuilder create(java.lang.String lookupString)
public static LookupElementBuilder create(java.lang.Object object)
public static LookupElementBuilder createWithSmartPointer(java.lang.String lookupString, PsiElement element)
public static LookupElementBuilder create(PsiNamedElement element)
public static LookupElementBuilder createWithIcon(PsiNamedElement element)
public static LookupElementBuilder create(java.lang.Object lookupObject, java.lang.String lookupString)
@Deprecated public LookupElementBuilder setInsertHandler(InsertHandler<LookupElement> insertHandler)
withInsertHandler(InsertHandler)
public LookupElementBuilder withInsertHandler(InsertHandler<LookupElement> insertHandler)
@Deprecated public LookupElementBuilder setRenderer(LookupElementRenderer<LookupElement> renderer)
withRenderer(LookupElementRenderer)
public LookupElementBuilder withRenderer(LookupElementRenderer<LookupElement> renderer)
public java.util.Set<java.lang.String> getAllLookupStrings()
getAllLookupStrings
in class LookupElement
@Deprecated public LookupElementBuilder setIcon(javax.swing.Icon icon)
withIcon(Icon)
public LookupElementBuilder withIcon(javax.swing.Icon icon)
@Deprecated public LookupElementBuilder addLookupString(java.lang.String another)
withLookupString(String)
public LookupElementBuilder withLookupString(java.lang.String another)
public LookupElementBuilder withLookupStrings(java.util.Collection<java.lang.String> another)
public boolean isCaseSensitive()
isCaseSensitive
in class LookupElement
@Deprecated public LookupElementBuilder setCaseSensitive(boolean caseSensitive)
withCaseSensitivity(boolean)
public LookupElementBuilder withCaseSensitivity(boolean caseSensitive)
caseSensitive
- if this lookup item should be completed in the same letter case as prefixCompletionResultSet.caseInsensitive()
public LookupElementBuilder withPsiElement(PsiElement psi)
getPsiElement()
.@Deprecated public LookupElementBuilder setItemTextForeground(java.awt.Color itemTextForeground)
withItemTextForeground(Color)
public LookupElementBuilder withItemTextForeground(java.awt.Color itemTextForeground)
@Deprecated public LookupElementBuilder setItemTextUnderlined(boolean underlined)
withItemTextUnderlined(boolean)
public LookupElementBuilder withItemTextUnderlined(boolean underlined)
public LookupElementBuilder withItemTextItalic(boolean italic)
@Deprecated public LookupElementBuilder setTypeText(java.lang.String typeText)
withTypeText(String)
public LookupElementBuilder withTypeText(java.lang.String typeText)
@Deprecated public LookupElementBuilder setTypeText(java.lang.String typeText, boolean grayed)
withTypeText(String, boolean)
public LookupElementBuilder withTypeText(java.lang.String typeText, boolean grayed)
public LookupElementBuilder withTypeText(java.lang.String typeText, javax.swing.Icon typeIcon, boolean grayed)
public LookupElementBuilder withTypeIconRightAligned(boolean typeIconRightAligned)
@Deprecated public LookupElementBuilder setPresentableText(java.lang.String presentableText)
withPresentableText(String)
public LookupElementBuilder withPresentableText(java.lang.String presentableText)
@Deprecated public LookupElementBuilder setBold()
bold()
public LookupElementBuilder bold()
@Deprecated public LookupElementBuilder setBold(boolean bold)
withBoldness(boolean)
public LookupElementBuilder withBoldness(boolean bold)
@Deprecated public LookupElementBuilder setStrikeout()
strikeout()
public LookupElementBuilder strikeout()
@Deprecated public LookupElementBuilder setStrikeout(boolean strikeout)
withStrikeoutness(boolean)
public LookupElementBuilder withStrikeoutness(boolean strikeout)
@Deprecated public LookupElementBuilder setTailText(java.lang.String tailText)
withTailText(String)
public LookupElementBuilder withTailText(java.lang.String tailText)
@Deprecated public LookupElementBuilder setTailText(java.lang.String tailText, boolean grayed)
withTailText(String, boolean)
public LookupElementBuilder withTailText(java.lang.String tailText, boolean grayed)
public LookupElementBuilder appendTailText(java.lang.String tailText, boolean grayed)
public LookupElement withAutoCompletionPolicy(AutoCompletionPolicy policy)
public java.lang.String getLookupString()
getLookupString
in class LookupElement
public InsertHandler<LookupElement> getInsertHandler()
public LookupElementRenderer<LookupElement> getRenderer()
public java.lang.Object getObject()
getObject
in class LookupElement
public PsiElement getPsiElement()
getPsiElement
in class LookupElement
LookupElement.getObject()
result.public void handleInsert(InsertionContext context)
handleInsert
in class LookupElement
public void renderElement(LookupElementPresentation presentation)
renderElement
in class LookupElement
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class LookupElement
public int hashCode()
hashCode
in class java.lang.Object