public class LookupCellRenderer extends java.lang.Object implements javax.swing.ListCellRenderer<LookupElement>
Modifier and Type | Field and Description |
---|---|
static java.awt.Color |
BACKGROUND_COLOR |
static java.awt.Color |
FOREGROUND_COLOR
Deprecated.
unused
|
static java.awt.Color |
SELECTED_FOREGROUND_COLOR
Deprecated.
unused
|
static java.awt.Color |
SELECTED_NON_FOCUSED_BACKGROUND_COLOR |
Constructor and Description |
---|
LookupCellRenderer(LookupImpl lookup) |
Modifier and Type | Method and Description |
---|---|
static javax.swing.Icon |
augmentIcon(Editor editor,
javax.swing.Icon icon,
javax.swing.Icon standard) |
static java.awt.Color |
getGrayedForeground(boolean isSelected) |
java.awt.Component |
getListCellRendererComponent(javax.swing.JList list,
LookupElement item,
int index,
boolean isSelected,
boolean hasFocus) |
static FList<TextRange> |
getMatchingFragments(java.lang.String prefix,
java.lang.String name) |
int |
getTextIndent() |
@Deprecated public static final java.awt.Color FOREGROUND_COLOR
@Deprecated public static final java.awt.Color SELECTED_FOREGROUND_COLOR
public static final java.awt.Color BACKGROUND_COLOR
public static final java.awt.Color SELECTED_NON_FOCUSED_BACKGROUND_COLOR
public LookupCellRenderer(LookupImpl lookup)
public java.awt.Component getListCellRendererComponent(javax.swing.JList list, LookupElement item, int index, boolean isSelected, boolean hasFocus)
getListCellRendererComponent
in interface javax.swing.ListCellRenderer<LookupElement>
public static java.awt.Color getGrayedForeground(boolean isSelected)
public static FList<TextRange> getMatchingFragments(java.lang.String prefix, java.lang.String name)
public static javax.swing.Icon augmentIcon(Editor editor, javax.swing.Icon icon, javax.swing.Icon standard)
public int getTextIndent()