public class LookupElementPresentation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LookupElementPresentation.TextFragment |
Constructor and Description |
---|
LookupElementPresentation() |
Modifier and Type | Method and Description |
---|---|
void |
appendTailText(java.lang.String text,
boolean grayed) |
void |
appendTailTextItalic(java.lang.String text,
boolean grayed) |
void |
clearTail() |
void |
copyFrom(LookupElementPresentation presentation) |
javax.swing.Icon |
getIcon() |
java.lang.String |
getItemText() |
java.awt.Color |
getItemTextForeground() |
java.util.List<LookupElementPresentation.TextFragment> |
getTailFragments() |
java.lang.String |
getTailText() |
javax.swing.Icon |
getTypeIcon() |
java.lang.String |
getTypeText() |
boolean |
isItemTextBold() |
boolean |
isItemTextItalic() |
boolean |
isItemTextUnderlined() |
boolean |
isReal()
Is equivalent to instanceof
RealLookupElementPresentation check. |
boolean |
isStrikeout() |
boolean |
isTailGrayed()
Deprecated.
there can be multiple
getTailFragments() |
boolean |
isTypeGrayed() |
boolean |
isTypeIconRightAligned() |
static LookupElementPresentation |
renderElement(LookupElement element) |
void |
setIcon(javax.swing.Icon icon) |
void |
setItemText(java.lang.String text) |
void |
setItemTextBold(boolean bold) |
void |
setItemTextForeground(java.awt.Color itemTextForeground) |
void |
setItemTextItalic(boolean itemTextItalic) |
void |
setItemTextUnderlined(boolean itemTextUnderlined) |
void |
setStrikeout(boolean strikeout) |
void |
setTailText(java.lang.String text) |
void |
setTailText(java.lang.String text,
boolean grayed) |
void |
setTailText(java.lang.String text,
java.awt.Color foreground) |
void |
setTypeGrayed(boolean typeGrayed) |
void |
setTypeIconRightAligned(boolean typeIconRightAligned) |
void |
setTypeText(java.lang.String text) |
void |
setTypeText(java.lang.String text,
javax.swing.Icon icon) |
java.lang.String |
toString() |
public void setIcon(javax.swing.Icon icon)
public void setItemText(java.lang.String text)
public void setStrikeout(boolean strikeout)
public void setItemTextBold(boolean bold)
public void setItemTextItalic(boolean itemTextItalic)
public void setTailText(java.lang.String text)
public void clearTail()
public void appendTailText(java.lang.String text, boolean grayed)
public void appendTailTextItalic(java.lang.String text, boolean grayed)
public void setTailText(java.lang.String text, boolean grayed)
public void setTailText(java.lang.String text, java.awt.Color foreground)
public void setTypeText(java.lang.String text)
public void setTypeText(java.lang.String text, javax.swing.Icon icon)
public boolean isReal()
RealLookupElementPresentation
check.public javax.swing.Icon getIcon()
public javax.swing.Icon getTypeIcon()
public java.lang.String getItemText()
public java.util.List<LookupElementPresentation.TextFragment> getTailFragments()
public java.lang.String getTailText()
public java.lang.String getTypeText()
public boolean isStrikeout()
@Deprecated public boolean isTailGrayed()
getTailFragments()
public boolean isItemTextBold()
public boolean isItemTextItalic()
public boolean isItemTextUnderlined()
public void setItemTextUnderlined(boolean itemTextUnderlined)
public java.awt.Color getItemTextForeground()
public void setItemTextForeground(java.awt.Color itemTextForeground)
public void copyFrom(LookupElementPresentation presentation)
public boolean isTypeGrayed()
public void setTypeGrayed(boolean typeGrayed)
public boolean isTypeIconRightAligned()
public void setTypeIconRightAligned(boolean typeIconRightAligned)
public static LookupElementPresentation renderElement(LookupElement element)
public java.lang.String toString()
toString
in class java.lang.Object