SalesPoint Framework v3.0

log.swing
Class DefaultLogEntryTED

java.lang.Object
  |
  +--util.swing.AbstractTableEntryDescriptor
        |
        +--log.swing.DefaultLogEntryTED

public class DefaultLogEntryTED
extends AbstractTableEntryDescriptor

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.

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

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

DefaultLogEntryTED

public DefaultLogEntryTED()
Method Detail

getColumnCount

public int getColumnCount()
There are two columns.

getColumnName

public String getColumnName(int nIdx)
The column name of the first column is "Date", that of the second column is "Description".

getColumnClass

public Class getColumnClass(int nIdx)
The column class of the first column is Date.class, that of the second column is String.class.

getValueAt

public 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.

SalesPoint Framework v3.0