|
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 log.swing.DefaultLogEntryTED
TableEntryDescriptor that can be used to display LogEntries
.
LogEntries will be displayed using two columns. The first column will have the heading "Date"
and will show the LogEntry's log date
. The second column will show the return
of the LogEntry's Object.toString()
method under the heading "Description". Both columns
are not editable.
Constructor Summary | |
DefaultLogEntryTED()
|
Method Summary | |
Class |
getColumnClass(int nIdx)
The column class of the first column is Date.class , that of the second column is
String.class . |
int |
getColumnCount()
There are two columns. |
String |
getColumnName(int nIdx)
The column name of the first column is "Date", that of the second column is "Description". |
Object |
getValueAt(Object oData,
int nIdx)
The object is assumed to be a LogEntry ; the value of the first column is the
log date that of the second column is the result of the object's
Object.toString() method. |
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 DefaultLogEntryTED()
Method Detail |
public int getColumnCount()
public String getColumnName(int nIdx)
nIdx
- the index of the column for which to return the header. Indices run from 0 to
getColumnCount() - 1
.
public Class getColumnClass(int nIdx)
Date.class
, that of the second column is
String.class
.
nIdx
- the index of the column for which to return the value class. Indices run from 0 to
getColumnCount() - 1
.
public Object getValueAt(Object oData, int nIdx)
LogEntry
; the value of the first column is the
log date
that of the second column is the result of the object's
Object.toString()
method.
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
.
TableEntryDescriptor.getColumnClass(int)
or that class itself.
|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |