SalesPoint Framework v3.0

data.swing
Class DefaultCountingStockItemTED

java.lang.Object
  |
  +--util.swing.AbstractTableEntryDescriptor
        |
        +--data.swing.DefaultCatalogItemTED
              |
              +--data.swing.DefaultCountingStockItemTED
Direct Known Subclasses:
DefaultMoneyBagItemTED

public class DefaultCountingStockItemTED
extends DefaultCatalogItemTED

A TableEntryDescriptor that can be used with a CountingStockTableModel.

There will be three columns: "Name", "Value" and "Count". The first will display the items' names, the secind their values and the third will show how many items of a sort are actually in the Stock.

Since:
v2.0
Version:
2.0 23/08/1999
Author:
Steffen Zschaler
See Also:
Serialized Form

Constructor Summary
DefaultCountingStockItemTED()
          Create a new DefaultCountingStockItemTED.
 
Method Summary
 Class getColumnClass(int nIdx)
           
 int getColumnCount()
           
 String getColumnName(int nIdx)
           
 Object getValueAt(Object oData, int nIdx)
           
 
Methods inherited from class util.swing.AbstractTableEntryDescriptor
canSortByColumn, getCellEditor, getCellRenderer, getColumnOrder, isElementEditable, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCountingStockItemTED

public DefaultCountingStockItemTED()
Create a new DefaultCountingStockItemTED.
Method Detail

getColumnCount

public int getColumnCount()
Override:
Sometimes.
Returns:
3.
Overrides:
getColumnCount in class DefaultCatalogItemTED

getColumnName

public String getColumnName(int nIdx)
Override:
Sometimes.
Returns:
"Name" for the first, "Value" for the second and "Count" for the third column.
Overrides:
getColumnName in class DefaultCatalogItemTED

getColumnClass

public Class getColumnClass(int nIdx)
Override:
Sometimes.
Returns:
String.class for the first, Value.class for the second and Integer.class for the third column.
Overrides:
getColumnClass in class DefaultCatalogItemTED

getValueAt

public Object getValueAt(Object oData,
                         int nIdx)
Override:
Sometimes.
Returns:
the item's name for the first, its value for the second and the number of items for the third column.
Overrides:
getValueAt in class DefaultCatalogItemTED

SalesPoint Framework v3.0