Videoautomat

videoautomat
Class TEDVideoStock

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

public class TEDVideoStock
extends AbstractTableEntryDescriptor

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


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 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:
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)

getCellRenderer

public TableCellRenderer getCellRenderer(int nIdx)
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:
util.swing.TableEntryDescriptor#getCellRenderer(int)

Videoautomat