|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wisc.ssec.mcidasv.ui.McvToolbarEditor.IconCellRenderer
private static class McvToolbarEditor.IconCellRenderer
Renders a toolbar action and its icon within the TwoListPanel
's
JList
s.
Field Summary | |
---|---|
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 Summary | |
---|---|
McvToolbarEditor.IconCellRenderer(McvToolbarEditor editor)
Associates this renderer with the McvToolbarEditor that
created it. |
Method Summary | |
---|---|
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Icon SPACE_ICON
private DefaultListCellRenderer defaultRenderer
private McvToolbarEditor editor
Constructor Detail |
---|
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.Method Detail |
---|
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
getListCellRendererComponent
in interface ListCellRenderer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |