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