public class ListTableModel extends AbstractTableModel
listenerList
Constructor and Description |
---|
ListTableModel() |
Modifier and Type | Method and Description |
---|---|
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.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public void addRow(Channel channel, Program first, Program second)
channel
- Channelfirst
- First Programsecond
- Second Programpublic void updateRow(Channel channel, Program first, Program second)
channel
- Channel in Rowfirst
- First Programsecond
- Second Programpublic void removeAllRows()
public int getColumnCount()
public int getRowCount()
public Object getValueAt(int rowIndex, int columnIndex)
public Program getProgram(int row)
row
- Rowpublic Program getNextProgram(int row)
row
- RowTV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)