com.tensegrity.gui.swing.control
Class ComboTranslatorListCellRenderer
java.lang.Object
com.tensegrity.gui.swing.control.ComboTranslatorListCellRenderer
- All Implemented Interfaces:
- javax.swing.ListCellRenderer
- public class ComboTranslatorListCellRenderer
- extends java.lang.Object
- implements javax.swing.ListCellRenderer
The class ComboTranslatorListCellRenderer is used to
translate the values in a combo box using an
AttributeEditorTranslator.
The difference between this translation approach and the
AttributeEditorTranslatorCombo is
that this one does not sort the items using the translated strings.
Usually this class is used by the editor and renderer of an
AttributeEditor.
- Author:
- BurkhardWick
|
Method Summary |
java.awt.Component |
getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComboTranslatorListCellRenderer
public ComboTranslatorListCellRenderer(javax.swing.ListCellRenderer baseRenderer,
AttributeEditorTranslator aet,
java.lang.String attributePath)
getListCellRendererComponent
public java.awt.Component getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
- Specified by:
getListCellRendererComponent in interface javax.swing.ListCellRenderer
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.