Package net.sf.freecol.client.gui.panel
Class FindSettlementPanel.SettlementRenderer
- java.lang.Object
-
- net.sf.freecol.client.gui.plaf.FreeColComboBoxRenderer<Settlement>
-
- net.sf.freecol.client.gui.panel.FindSettlementPanel.SettlementRenderer
-
- All Implemented Interfaces:
javax.swing.ListCellRenderer<Settlement>
,javax.swing.plaf.UIResource
- Enclosing class:
- FindSettlementPanel
private static class FindSettlementPanel.SettlementRenderer extends FreeColComboBoxRenderer<Settlement>
-
-
Field Summary
Fields Modifier and Type Field Description private ImageLibrary
lib
-
Constructor Summary
Constructors Constructor Description SettlementRenderer(ImageLibrary lib)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setLabelValues(javax.swing.JLabel label, Settlement value)
Set the text to place in a label.-
Methods inherited from class net.sf.freecol.client.gui.plaf.FreeColComboBoxRenderer
getListCellRendererComponent
-
-
-
-
Field Detail
-
lib
private final ImageLibrary lib
-
-
Constructor Detail
-
SettlementRenderer
public SettlementRenderer(ImageLibrary lib)
-
-
Method Detail
-
setLabelValues
public void setLabelValues(javax.swing.JLabel label, Settlement value)
Set the text to place in a label.- Overrides:
setLabelValues
in classFreeColComboBoxRenderer<Settlement>
- Parameters:
label
- TheJLabel
to assign.value
- The object to derive a text value from.
-
-