Videoautomat

videoautomat
Class TEDVideoCassette

java.lang.Object
  |
  +--util.swing.AbstractTableEntryDescriptor
        |
        +--videoautomat.TEDVideoCassette
All Implemented Interfaces:
Serializable, util.swing.TableEntryDescriptor

public class TEDVideoCassette
extends util.swing.AbstractTableEntryDescriptor

This class implements a TableEntryDescriptor used to display rented VideoCassettes

See Also:
Serialized Form

Constructor Summary
TEDVideoCassette()
           
 
Method Summary
 Class getColumnClass(int nIdx)
           
 int getColumnCount()
           
 String getColumnName(int nIdx)
           
 Object getValueAt(Object oRecord, int nIdx)
           
 
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

TEDVideoCassette

public TEDVideoCassette()
Method Detail

getColumnCount

public int getColumnCount()
Returns:
the number of columns each record will consist of.
See Also:
TableEntryDescriptor.getColumnCount()

getColumnName

public String getColumnName(int nIdx)
Parameters:
nIdx - the index of the column for which to return the header. Indices run from 0 to getColumnCount()- 1.
Returns:
the text to be printed in the header of the given column.
See Also:
TableEntryDescriptor.getColumnName(int)

getColumnClass

public Class getColumnClass(int nIdx)
Parameters:
nIdx - the index of the column for which to return the header. Indices run from 0 to getColumnCount()- 1.
Returns:
the class of objects that make up the values of cells of the given column. This will be used to determine the cell renderer and editor unless you specify otherwise through util.swing.AbstractTableEntryDescriptor#getCellEditor(int) and util.swing.AbstractTableEntryDescriptor#getCellRenderer(int).
See Also:
TableEntryDescriptor.getColumnClass(int)

getValueAt

public Object getValueAt(Object oRecord,
                         int nIdx)
Parameters:
nIdx - the index of the column for which to return the header. Indices run from 0 to getColumnCount()- 1.
Returns:
the value to be printed in the given column for the given record. The actual class must be a subclass of what was returned by getColumnClass(int)or that class itself.
See Also:
TableEntryDescriptor.getValueAt(java.lang.Object, int)

Videoautomat