Class FWLocalizationListCellRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ListCellRenderer<Object>, SwingConstants

@Deprecated public class FWLocalizationListCellRenderer extends DefaultListCellRenderer
Deprecated.
ListCellRenderer to automatically localize list values rendered as JLabel. If component ID is specified this is used as prefix for LocaleBundle key (besides standard prefix: <SystemID>.FormComponent). TODO: not yet integrated in FWComboChoiceSubComponent, FWListChoiceSubComponent (currently unused).
Author:
Martin Schmitz
See Also:
  • Field Details

    • iFormComponentID

      @Deprecated protected String iFormComponentID
      Deprecated.
      Holds the form component ID, which is used as prefix for localization key.
    • iObservable

      @Deprecated protected net.simplace.core.FWObservable iObservable
      Deprecated.
      Holds the FWObservable to retrieve the parameter map used to replace wildcards in localization value (from parameter map).
      See Also:
      • invalid reference
        FWParameterResolver#replace(Map, String, Object, boolean)
    • iPipedRenderer

      @Deprecated protected ListCellRenderer<Object> iPipedRenderer
      Deprecated.
      Holds the ListCellRenderer which is used to create the rendering component (before localization). If null, the DefaultListCellRenderer is used.
  • Constructor Details

    • FWLocalizationListCellRenderer

      @Deprecated public FWLocalizationListCellRenderer(net.simplace.core.FWObservable aObservable)
      Deprecated.
      Creates a new renderer.
      Parameters:
      aObservable - used to retrieve the parameter map to replace wildcards in localization value (from parameter map)
    • FWLocalizationListCellRenderer

      @Deprecated public FWLocalizationListCellRenderer(net.simplace.core.FWObservable aObservable, String aFormComponentID)
      Deprecated.
      Creates a new renderer.
      Parameters:
      aObservable - used to retrieve the parameter map to replace wildcards in localization value (from parameter map)
      aFormComponentID - form component ID, which is used as prefix for localization key (can be null or empty)
    • FWLocalizationListCellRenderer

      @Deprecated public FWLocalizationListCellRenderer(net.simplace.core.FWObservable aObservable, String aFormComponentID, ListCellRenderer<Object> aPipedRenderer)
      Deprecated.
      Creates a new renderer.
      Parameters:
      aObservable - used to retrieve the parameter map to replace wildcards in localization value (from parameter map)
      aFormComponentID - form component ID, which is used as prefix for localization key (can be null or empty)
      aPipedRenderer - renderer creating the rendering component before localization, or null for the default renderer
  • Method Details

    • getListCellRendererComponent

      @Deprecated public Component getListCellRendererComponent(JList<? extends Object> aList, Object aValue, int aIindex, boolean isSelected, boolean cellHasFocus)
      Deprecated.
      For cell value of type String parameter wildcards are replaced and localization is determined after creating the rendering component.
      Specified by:
      getListCellRendererComponent in interface ListCellRenderer<Object>
      Overrides:
      getListCellRendererComponent in class DefaultListCellRenderer
      Parameters:
      aList - the list
      aValue - the cell value
      aIindex - the cell index
      isSelected - true if the cell is selected
      cellHasFocus - true if the cell has the focus
      Returns:
      the rendering component with localised text
      See Also:
      • FWFrameworkHelper.localizeFormComponentValue(FWObservable, String, String)