TV-Browser 2.7.5 API

listviewplugin
Class ListTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by listviewplugin.ListTableModel
All Implemented Interfaces:
Serializable, TableModel

public class ListTableModel
extends AbstractTableModel

This Class contains the TableModel for the Table

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ListTableModel()
           
 
Method Summary
 void addRow(Channel channel, Program first, Program second)
          Adds one Row to the Table
 int getColumnCount()
           
 String getColumnName(int column)
          Returns the Column-Name
 Program getNextProgram(int row)
          Gets the second Program in the Row
 Program getProgram(int row)
          Gets the first Program in the Row
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 void removeAllRows()
           
 void updateRow(Channel channel, Program first, Program second)
          Updates a Channel-Row in the Table.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListTableModel

public ListTableModel()
Method Detail

getColumnName

public String getColumnName(int column)
Returns the Column-Name

Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

addRow

public void addRow(Channel channel,
                   Program first,
                   Program second)
Adds one Row to the Table

Parameters:
channel - Channel
first - First Program
second - Second Program

updateRow

public void updateRow(Channel channel,
                      Program first,
                      Program second)
Updates a Channel-Row in the Table. If the Row wasn't found, it will be added to the Model

Parameters:
channel - Channel in Row
first - First Program
second - Second Program

removeAllRows

public void removeAllRows()

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)

getProgram

public Program getProgram(int row)
Gets the first Program in the Row

Parameters:
row - Row
Returns:
First Program in Row

getNextProgram

public Program getNextProgram(int row)
Gets the second Program in the Row

Parameters:
row - Row
Returns:
Second Program in the Row

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)