net.sf.freecol.client.gui.plaf
Class FreeColComboBoxRenderer
java.lang.Object
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.
|
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 |
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
FreeColComboBoxRenderer
public FreeColComboBoxRenderer()
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