Videoautomat

videoautomat
Class TEDVideoCassette

java.lang.Object
  extended by AbstractTableEntryDescriptor
      extended by videoautomat.TEDVideoCassette

public class TEDVideoCassette
extends AbstractTableEntryDescriptor

This class implements a TableEntryDescriptor used to display rented VideoCassettes


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 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:
util.swing.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:
util.swing.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:
util.swing.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:
util.swing.TableEntryDescriptor#getValueAt(java.lang.Object, int)

Videoautomat