|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object util.swing.AbstractTableEntryDescriptor data.swing.DefaultCatalogItemTED data.swing.DefaultCountingStockItemTED data.swing.DefaultMoneyBagItemTED
A TableEntryDescriptor
that can be used to model MoneyBags with a
CountingStockTableModel
.
Essentially this is a DefaultCountingStockItemTED
that renders its value column using a
Currency to format the values.
Constructor Summary | |
DefaultMoneyBagItemTED(Currency c)
Create a new DefaultMoneyBagItemTED. |
Method Summary | |
TableCellRenderer |
getCellRenderer(int nIdx)
Returns null to indicate that the default cell renderer is to be used based on the cell
value's class. |
Class |
getColumnClass(int nIdx)
Return the class of objects that make up the values of cells of the given column. |
protected TableCellRenderer |
getValueRenderer()
Internal helper function that gets (and if necessary creates) the cell renderer for the value column. |
Methods inherited from class data.swing.DefaultCountingStockItemTED |
getColumnCount, getColumnName, getValueAt |
Methods inherited from class util.swing.AbstractTableEntryDescriptor |
canSortByColumn, getCellEditor, getColumnOrder, isElementEditable, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultMoneyBagItemTED(Currency c)
c
- the Currency used for formatting. Must be the same as the Currency of the MoneyBag modelled by
the associated CountingStockTableModel
.Method Detail |
protected TableCellRenderer getValueRenderer()
public Class getColumnClass(int nIdx)
TableEntryDescriptor
TableEntryDescriptor.getCellEditor(int)
and
TableEntryDescriptor.getCellRenderer(int)
.
getColumnClass
in interface TableEntryDescriptor
getColumnClass
in class DefaultCountingStockItemTED
NumberValue
.class
for the second column, otherwise the superclass' return
values.public TableCellRenderer getCellRenderer(int nIdx)
AbstractTableEntryDescriptor
null
to indicate that the default cell renderer is to be used based on the cell
value's class.
getCellRenderer
in interface TableEntryDescriptor
getCellRenderer
in class AbstractTableEntryDescriptor
null
for the first, getValueRenderer()
for the second column.
|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |