Class FWLocalizationListCellRenderer

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

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

  • Constructor Details

    • FWLocalizationListCellRenderer

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

      public FWLocalizationListCellRenderer(FWObservable aObservable, String aFormComponentID)
      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

      public FWLocalizationListCellRenderer(FWObservable aObservable, String aFormComponentID, ListCellRenderer<Object> aPipedRenderer)
      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 -
  • Method Details