Class AbstractUnitOptionUI.RoleRenderer

  • All Implemented Interfaces:
    javax.swing.ListCellRenderer<java.lang.String>, javax.swing.plaf.UIResource
    Enclosing class:
    AbstractUnitOptionUI

    private static class AbstractUnitOptionUI.RoleRenderer
    extends FreeColComboBoxRenderer<java.lang.String>
    • Constructor Detail

      • RoleRenderer

        private RoleRenderer()
    • Method Detail

      • setLabelValues

        public void setLabelValues​(javax.swing.JLabel label,
                                   java.lang.String value)
        Description copied from class: FreeColComboBoxRenderer
        Set the text to place in a label.
        Overrides:
        setLabelValues in class FreeColComboBoxRenderer<java.lang.String>
        Parameters:
        label - The JLabel to assign.
        value - The object to derive a text value from.