public class ClassCellRenderer extends ListCellRendererWrapper<PsiClass>
Constructor and Description |
---|
ClassCellRenderer(javax.swing.ListCellRenderer original) |
Modifier and Type | Method and Description |
---|---|
void |
customize(javax.swing.JList list,
PsiClass aClass,
int index,
boolean selected,
boolean hasFocus)
Implement this method to configure text and icon for given value.
|
createSeparator, getListCellRendererComponent, setBackground, setClientProperty, setFont, setForeground, setIcon, setSeparator, setText, setToolTipText
public ClassCellRenderer(javax.swing.ListCellRenderer original)
public void customize(javax.swing.JList list, PsiClass aClass, int index, boolean selected, boolean hasFocus)
ListCellRendererWrapper
ListCellRendererWrapper.setIcon(Icon)
and ListCellRendererWrapper.setText(String)
methods.customize
in class ListCellRendererWrapper<PsiClass>
list
- The JList we're painting.aClass
- The value returned by list.getModel().getElementAt(index).index
- The cells index.selected
- True if the specified cell was selected.hasFocus
- True if the specified cell has the focus.