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