|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.swing.AbstractTableEntryDescriptor
data.swing.DefaultCatalogItemTED
data.swing.DefaultCountingStockItemTED
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.
| Constructor Summary | |
DefaultCountingStockItemTED()
Create a new DefaultCountingStockItemTED. |
|
| Method Summary | |
Class |
getColumnClass(int nIdx)
Return the class of objects that make up the values of cells of the given column. |
int |
getColumnCount()
Return the number of columns each record will consist of. |
String |
getColumnName(int nIdx)
Return the text to be printed in the header of the given column. |
Object |
getValueAt(Object oData,
int nIdx)
Get the value to be printed in the given column for the given record. |
| 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 |
public DefaultCountingStockItemTED()
| Method Detail |
public int getColumnCount()
TableEntryDescriptor
getColumnCount in interface TableEntryDescriptorgetColumnCount in class DefaultCatalogItemTEDpublic String getColumnName(int nIdx)
TableEntryDescriptor
getColumnName in interface TableEntryDescriptorgetColumnName in class DefaultCatalogItemTEDpublic Class getColumnClass(int nIdx)
TableEntryDescriptorTableEntryDescriptor.getCellEditor(int) and
TableEntryDescriptor.getCellRenderer(int).
getColumnClass in interface TableEntryDescriptorgetColumnClass in class DefaultCatalogItemTEDString.class for the first, Value.class for the second and
Integer.class for the third column.
public Object getValueAt(Object oData,
int nIdx)
TableEntryDescriptor
getValueAt in interface TableEntryDescriptorgetValueAt in class DefaultCatalogItemTED
|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||