public class DefaultProgramTableModel extends Object implements ProgramTableModel, ChangeListener
Constructor and Description |
---|
DefaultProgramTableModel(Channel[] channelArr,
int todayEarliestTime,
int tomorrowLatestTime)
Creates a new instance of DefaultProgramTableModel.
|
Modifier and Type | Method and Description |
---|---|
void |
addProgramTableModelListener(ProgramTableModelListener listener) |
boolean |
contains(Program p)
Checks if this model contains a program.
|
protected void |
fireProgramHasChanged(Program program) |
protected void |
fireTableCellUpdated(int col,
int row) |
protected void |
fireTableDataChanged(Runnable callback) |
int |
getAvailableChannelCount() |
ChannelFilterComponent |
getChannelGroup() |
int |
getColumnCount() |
protected int |
getColumnOfChannel(Channel channel) |
Date |
getDate() |
ProgramFilter |
getProgramFilter() |
ProgramPanel |
getProgramPanel(int col,
int row) |
int |
getRowCount(int col) |
Channel[] |
getShownChannels() |
void |
setChannelGroup(ChannelFilterComponent channelFilter)
set the active channel group
|
void |
setChannels(Channel[] channelArr) |
void |
setDate(Date date,
ProgressMonitor monitor,
Runnable callback) |
void |
setProgramFilter(ProgramFilter filter) |
void |
setTimeRange(int todayEarliestTime,
int tomorrowLatestTime) |
void |
stateChanged(ChangeEvent evt)
Called when a program has changed.
|
void |
updateTableContent() |
public DefaultProgramTableModel(Channel[] channelArr, int todayEarliestTime, int tomorrowLatestTime)
public void setTimeRange(int todayEarliestTime, int tomorrowLatestTime)
public void setChannels(Channel[] channelArr)
public void setProgramFilter(ProgramFilter filter)
setProgramFilter
in interface ProgramTableModel
public void setChannelGroup(ChannelFilterComponent channelFilter)
ProgramTableModel
setChannelGroup
in interface ProgramTableModel
public ProgramFilter getProgramFilter()
public ChannelFilterComponent getChannelGroup()
public void setDate(Date date, ProgressMonitor monitor, Runnable callback)
public Date getDate()
getDate
in interface ProgramTableModel
public void updateTableContent()
public void addProgramTableModelListener(ProgramTableModelListener listener)
addProgramTableModelListener
in interface ProgramTableModel
public Channel[] getShownChannels()
getShownChannels
in interface ProgramTableModel
public int getAvailableChannelCount()
public int getColumnCount()
getColumnCount
in interface ProgramTableModel
public int getRowCount(int col)
getRowCount
in interface ProgramTableModel
public ProgramPanel getProgramPanel(int col, int row)
getProgramPanel
in interface ProgramTableModel
protected void fireTableDataChanged(Runnable callback)
protected void fireTableCellUpdated(int col, int row)
protected int getColumnOfChannel(Channel channel)
public boolean contains(Program p) throws Exception
p
- The program to check.Exception
- Thrown if something goes wrong.public void stateChanged(ChangeEvent evt)
stateChanged
in interface ChangeListener
evt
- The change event.protected void fireProgramHasChanged(Program program)
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)