public class SingleChannelFilterComponent extends java.lang.Object implements FilterComponent
FilterComponent.NameComparator, FilterComponent.TypeComparator
Constructor and Description |
---|
SingleChannelFilterComponent(Channel ch) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Program program)
Checks a program if it is acceptable by the FilterComponent.
|
boolean |
containsChannel(Channel ch) |
java.lang.String |
getDescription()
Gets the description of a FilterComponent.
|
java.lang.String |
getName()
Gets the name of a FilterComponent.
|
javax.swing.JPanel |
getSettingsPanel()
Gets the settings panel for a FilterComponent.
|
java.lang.String |
getTypeDescription()
Gets the description of a FilterComponent type.
|
int |
getVersion()
Gets the version number of a FilterComponent.
|
boolean |
isValidChannel() |
void |
read(java.io.ObjectInputStream in,
int version)
Loads the settings of a FilterComponent from an ObjectInputStream.
|
void |
saveSettings()
Is called when the settings should be saved (i.e. the users pressed the OK button in the settings dialog)
|
void |
setDescription(java.lang.String desc)
Sets the description of a FilterComponent.
|
void |
setName(java.lang.String name)
Sets the name of a FilterComponent.
|
void |
write(java.io.ObjectOutputStream out)
Saves the settings of a FilterComponent to an ObjectOutputStream.
|
public SingleChannelFilterComponent(Channel ch)
public int getVersion()
FilterComponent
getVersion
in interface FilterComponent
public boolean accept(Program program)
FilterComponent
accept
in interface FilterComponent
program
- The program to check.true
if the program is acceptable by the FilterComponent, false
otherwise.public void read(java.io.ObjectInputStream in, int version) throws java.io.IOException, java.lang.ClassNotFoundException
FilterComponent
read
in interface FilterComponent
in
- The stream to read from.version
- The version of the data.java.io.IOException
java.lang.ClassNotFoundException
public void write(java.io.ObjectOutputStream out) throws java.io.IOException
FilterComponent
write
in interface FilterComponent
out
- The stream to write to.java.io.IOException
public javax.swing.JPanel getSettingsPanel()
FilterComponent
getSettingsPanel
in interface FilterComponent
public void saveSettings()
FilterComponent
saveSettings
in interface FilterComponent
public java.lang.String getName()
FilterComponent
getName
in interface FilterComponent
public java.lang.String getTypeDescription()
FilterComponent
getTypeDescription
in interface FilterComponent
public java.lang.String getDescription()
FilterComponent
getDescription
in interface FilterComponent
public void setName(java.lang.String name)
FilterComponent
setName
in interface FilterComponent
name
- The new name of the FilterComponent.public void setDescription(java.lang.String desc)
FilterComponent
setDescription
in interface FilterComponent
desc
- The new description of the FilterComponent.public boolean isValidChannel()
public boolean containsChannel(Channel ch)
TV-Browser 3.4.1.0, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)