data.swing
Class  DefaultCurrencyItemTED
java.lang.Object
  |
  +--util.swing.AbstractTableEntryDescriptor
        |
        +--data.swing.DefaultCatalogItemTED
              |
              +--data.swing.DefaultCurrencyItemTED
- public class DefaultCurrencyItemTED
- extends DefaultCatalogItemTED
  
A TableEntryDescriptor that can be used to model Currencies with a
 CatalogTableModel.
 
Essentially this is a DefaultCatalogItemTED that renders its value column using the Currency to
 format the values.
- Since:
 - v2.0
 
- Version:
 - 2.0 23/08/1999
 
- Author:
 - Steffen Zschaler
 
- See Also:
 - Serialized Form
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait | 
 
DefaultCurrencyItemTED
public DefaultCurrencyItemTED(Currency c)
- Create a new DefaultCurrencyItemTED.
- Parameters:
 c - the Currency used for formatting. Must be the same as the Currency modelled by the associated
 CatalogTableModel.
 
 
getValueRenderer
protected TableCellRenderer getValueRenderer()
- Internal helper function that gets (and if necessary creates) the cell renderer for the value column.
- Override:
 - Never.
 
 
 
getColumnClass
public Class getColumnClass(int nIdx)
- Override:
 - Sometimes.
 - Returns:
 String.class for the first, NumberValue.class for the second
 column.- Overrides:
 - getColumnClass in class DefaultCatalogItemTED
 
 
getCellRenderer
public TableCellRenderer getCellRenderer(int nIdx)
- Override:
 - Sometimes.
 - Returns:
 null for the first, getValueRenderer() for the second column.- Overrides:
 - getCellRenderer in class AbstractTableEntryDescriptor