|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.desktop.teds.AbstractTableEntryDescriptor
org.salespointframework.desktop.teds.DefaultCatalogItemDBETableEntryDescriptor
public class DefaultCatalogItemDBETableEntryDescriptor
A TableEntryDescriptor
that can be used with a DataBasketTableModel
modelling
DataBasketEntries
that describe operations on CatalogItems
.
There will be exactly one column, headed "Name" and giving the key of the CatalogItem.
Constructor Summary | |
---|---|
DefaultCatalogItemDBETableEntryDescriptor()
Create a new DefaultCatalogItemDBETableEntryDescriptor. |
Method Summary | |
---|---|
java.lang.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. |
java.lang.String |
getColumnName(int nIdx)
Return the text to be printed in the header of the given column. |
java.lang.Object |
getValueAt(java.lang.Object oData,
int nIdx)
Get the value to be printed in the given column for the given record. |
Methods inherited from class org.salespointframework.desktop.teds.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 DefaultCatalogItemDBETableEntryDescriptor()
Method Detail |
---|
public int getColumnCount()
TableEntryDescriptor
public java.lang.String getColumnName(int nIdx)
TableEntryDescriptor
nIdx
- the index of the column for which to return the header. Indices run from 0 to
getColumnCount() - 1
.
public java.lang.Class<?> getColumnClass(int nIdx)
TableEntryDescriptor
TableEntryDescriptor.getCellEditor(int)
and
TableEntryDescriptor.getCellRenderer(int)
.
nIdx
- the index of the column for which to return the value class. Indices run from 0 to
getColumnCount() - 1
.
String.class
.public java.lang.Object getValueAt(java.lang.Object oData, int nIdx)
TableEntryDescriptor
oData
- the record for which to determine the value. The actual class depends on the
AbstractTableModel
you are working with. It will be declared in the documentation for
the AbstractTableModel.getRecord(int)
method of that class.nIdx
- the index of the column for which to return the cell value. Indices run from 0 to
getColumnCount() - 1
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |