net.sf.freecol.client.gui.plaf
Class FreeColComboBoxRenderer

java.lang.Object
  extended by net.sf.freecol.client.gui.plaf.FreeColComboBoxRenderer
All Implemented Interfaces:
javax.swing.ListCellRenderer
Direct Known Subclasses:
FreeColComboBoxRenderer.UIResource

public class FreeColComboBoxRenderer
extends java.lang.Object
implements javax.swing.ListCellRenderer

A ListCellRenderer to be used by FreeColListUI.


Nested Class Summary
static class FreeColComboBoxRenderer.UIResource
          The FreeColComboBoxRenderer as an UIResource.
 
Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String LICENSE
           
static java.lang.String REVISION
           
 
Constructor Summary
FreeColComboBoxRenderer()
           
 
Method Summary
 java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean hasFocus)
          Returns a ListCellRenderer for the given JList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

LICENSE

public static final java.lang.String LICENSE
See Also:
Constant Field Values

REVISION

public static final java.lang.String REVISION
See Also:
Constant Field Values
Constructor Detail

FreeColComboBoxRenderer

public FreeColComboBoxRenderer()
Method Detail

getListCellRendererComponent

public java.awt.Component getListCellRendererComponent(javax.swing.JList list,
                                                       java.lang.Object value,
                                                       int index,
                                                       boolean isSelected,
                                                       boolean hasFocus)
Returns a ListCellRenderer for the given JList.

Specified by:
getListCellRendererComponent in interface javax.swing.ListCellRenderer
Parameters:
list - The JList.
value - The list cell.
index - The index in the list.
isSelected - true if the given list cell is selected.
hasFocus - false if the given list cell has the focus.
Returns:
The ListCellRenderer