public class LabeledComboBoxRenderer extends Object implements ListCellRenderer
Labeled.getLabel()
instead of the developer-friendly Object.toString()
.Constructor and Description |
---|
LabeledComboBoxRenderer(ListCellRenderer originalListCellRenderer) |
Modifier and Type | Method and Description |
---|---|
static void |
applyToComboBox(JComboBox comboBox) |
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus) |
public LabeledComboBoxRenderer(ListCellRenderer originalListCellRenderer)
public static void applyToComboBox(JComboBox comboBox)
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
getListCellRendererComponent
in interface ListCellRenderer
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.