net.simplace.pipe.formcomponents.choice.FWLocalizationListCellRenderer

javax.swing.ListCellRenderer to automatically localize list values rendered as javax.swing.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


public class FWLocalizationListCellRenderer extends
javax.swing.DefaultListCellRenderer {
// Public Constructors
public FWLocalizationListCellRenderer(FWObservable aObservable);
public FWLocalizationListCellRenderer(FWObservable aObservable, String
aFormComponentID);
public FWLocalizationListCellRenderer(FWObservable aObservable, String
aFormComponentID, ListCellRenderer aPipedRenderer);

// Protected Instance Variables
protected String iFormComponentID;
protected FWObservable iObservable;
protected ListCellRenderer iPipedRenderer;

// Public Instance Methods
public Component getListCellRendererComponent(JList aList, Object aValue,
int aIindex, boolean isSelected, boolean cellHasFocus);
// Overrides javax.swing.DefaultListCellRenderer


For cell value of type java.lang.String parameter wildcards are replaced and localization is determined before calling the super method.


}



Hierarchy: java.lang.Object - java.awt.Component (java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable) - java.awt.Container - javax.swing.JComponent (java.io.Serializable, javax.swing.TransferHandler.HasGetTransferHandler) - javax.swing.JLabel (javax.swing.SwingConstants, javax.accessibility.Accessible) - javax.swing.DefaultListCellRenderer (javax.swing.ListCellRenderer, java.io.Serializable) - FWLocalizationListCellRenderer