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