data.swing
Class DefaultCatalogItemTED
java.lang.Object
|
+--util.swing.AbstractTableEntryDescriptor
|
+--data.swing.DefaultCatalogItemTED
- Direct Known Subclasses:
- DefaultCountingStockItemTED, DefaultCurrencyItemTED
- public class DefaultCatalogItemTED
- extends AbstractTableEntryDescriptor
A TableEntryDescriptor
that can be used with a CatalogTableModel
.
There will be two columns headed "Name" and "Value". The first will display the
CatalogItems' names, the second their 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 |
DefaultCatalogItemTED
public DefaultCatalogItemTED()
- Create a new DefaultCatalogItemTED.
getColumnCount
public int getColumnCount()
- Override:
- Sometimes.
- Returns:
- 2.
getColumnName
public String getColumnName(int nIdx)
- Override:
- Sometimes.
- Returns:
- "Name" for the first, "Value" for the second column.
getColumnClass
public Class getColumnClass(int nIdx)
- Override:
- Sometimes.
- Returns:
String.class
for the first, Value
.class
for the second column.
getValueAt
public Object getValueAt(Object oData,
int nIdx)
- Override:
- Sometimes.
- Returns:
- the CatalogItem's name for the first, its value for the second column.