Videoautomat

videoautomat
Class TEDVideoStock

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

public class TEDVideoStock
extends util.swing.AbstractTableEntryDescriptor

This class implements a TableEntryDescriptor used to display the VideoShop.getVideoStock()

See Also:
Serialized Form

Constructor Summary
TEDVideoStock()
           
 
Method Summary
 TableCellRenderer getCellRenderer(int nIdx)
           
 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, getColumnOrder, isElementEditable, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TEDVideoStock

public TEDVideoStock()
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)

getCellRenderer

public TableCellRenderer getCellRenderer(int nIdx)
Specified by:
getCellRenderer in interface util.swing.TableEntryDescriptor
Overrides:
getCellRenderer in class util.swing.AbstractTableEntryDescriptor
Parameters:
nIdx - the index of the column for which to return the header. Indices run from 0 to getColumnCount()- 1.
Returns:
the cell renderer to be used for cells in the given column.
See Also:
TableEntryDescriptor.getCellRenderer(int)

Videoautomat