data.swing
Class DefaultCountingStockDBETableEntryDescriptor
java.lang.Object
|
+--util.swing.AbstractTableEntryDescriptor
|
+--data.swing.DefaultCountingStockDBETableEntryDescriptor
- public class DefaultCountingStockDBETableEntryDescriptor
- extends AbstractTableEntryDescriptor
A TableEntryDescriptor
that can be used with a DataBasketTableModel
modelling
DataBasketEntries that describe operations on items in a CountingStock
.
There will be two columns, headed "Name" and "Count". The first will give the item's
name, the second the number of items of that sort available.
- 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 |
DefaultCountingStockDBETableEntryDescriptor
public DefaultCountingStockDBETableEntryDescriptor()
- Create a new DefaultCountingStockDBETableEntryDescriptor.
getColumnCount
public int getColumnCount()
- Override:
- Sometimes.
- Returns:
- 2.
getColumnName
public String getColumnName(int nIdx)
- Override:
- Sometimes.
- Returns:
- "Name" for the first and "Count" for the second column.
getColumnClass
public Class getColumnClass(int nIdx)
- Override:
- Sometimes.
- Returns:
String.class
for the first and Integer.class
for the second column.
getValueAt
public Object getValueAt(Object oData,
int nIdx)
- Override:
- Sometimes.
- Returns:
- the item's name for the first and the number of available items for the second column.