private static class McvToolbarEditor.IconCellRenderer extends Object implements ListCellRenderer
TwoListPanel's
JLists.| Modifier and Type | Field and Description |
|---|---|
private DefaultListCellRenderer |
defaultRenderer
Used to capture the normal cell renderer behaviors.
|
private McvToolbarEditor |
editor
Used to determine the action ID to icon associations.
|
private static Icon |
SPACE_ICON
Icon that represents spaces in the current toolbar actions.
|
| Constructor and Description |
|---|
McvToolbarEditor.IconCellRenderer(McvToolbarEditor editor)
Associates this renderer with the
McvToolbarEditor that
created it. |
| Modifier and Type | Method and Description |
|---|---|
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus) |
private static final Icon SPACE_ICON
private DefaultListCellRenderer defaultRenderer
private McvToolbarEditor editor
public McvToolbarEditor.IconCellRenderer(McvToolbarEditor editor)
McvToolbarEditor that
created it.editor - Toolbar editor that contains relevant action ID to
icon mapping.NullPointerException - if a null McvToolbarEditor was given.public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
getListCellRendererComponent in interface ListCellRenderer