public class SelectionAwareListCellRenderer<T>
extends java.lang.Object
implements javax.swing.ListCellRenderer<T>
Constructor and Description |
---|
SelectionAwareListCellRenderer(NotNullFunction<? super T,? extends javax.swing.JComponent> fun) |
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus) |
public SelectionAwareListCellRenderer(NotNullFunction<? super T,? extends javax.swing.JComponent> fun)
public java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean cellHasFocus)
getListCellRendererComponent
in interface javax.swing.ListCellRenderer<T>