TV-Browser 2.7.5 API

captureplugin.tabs
Class DeviceTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by captureplugin.tabs.DeviceTableModel
All Implemented Interfaces:
Serializable, TableModel

public class DeviceTableModel
extends AbstractTableModel

The TableModel for the Device-Program Table

Author:
bodum
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DeviceTableModel()
          Creates the Model
 
Method Summary
 void addProgram(DeviceIf dev, Program prog)
          Add a Device-Program to the Model
 void clearTable()
          Clears the Table
 int getColumnCount()
           
 String getColumnName(int col)
          Returns the Names for the Columns
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 void removeColumn(int column)
          Remove a Column
 
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

DeviceTableModel

public DeviceTableModel()
Creates the Model

Method Detail

addProgram

public void addProgram(DeviceIf dev,
                       Program prog)
Add a Device-Program to the Model

Parameters:
dev - Device
prog - Program in Device

removeColumn

public void removeColumn(int column)
Remove a Column

Parameters:
column - Column to remove

clearTable

public void clearTable()
Clears the Table


getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int col)
Returns the Names for the Columns

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

getRowCount

public int getRowCount()

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)

TV-Browser 2.7.5 API

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