Class LocalizedListCellRenderer

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
javax.swing.DefaultListCellRenderer
com.inductiveautomation.plaf.ComboListCellRenderer
com.inductiveautomation.ignition.client.util.gui.i18n.LocalizedListCellRenderer
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ListCellRenderer<Object>, SwingConstants
Direct Known Subclasses:
LocalizedEnumListCellRenderer

public class LocalizedListCellRenderer extends com.inductiveautomation.plaf.ComboListCellRenderer
See Also:
  • Constructor Details

    • LocalizedListCellRenderer

      public LocalizedListCellRenderer(String propPath)
      Prop path the path to the localized property key upon which the value will be appended to get the text. The prop path should also have "path.NULL" defined.
  • Method Details

    • getListCellRendererComponent

      public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
      Specified by:
      getListCellRendererComponent in interface ListCellRenderer<Object>
      Overrides:
      getListCellRendererComponent in class com.inductiveautomation.plaf.ComboListCellRenderer
    • getKeyNameForValue

      protected String getKeyNameForValue(Object value)