public class ChannelFilterComponent extends Object implements FilterComponent
FilterComponent.NameComparator, FilterComponent.TypeComparator
Constructor and Description |
---|
ChannelFilterComponent() |
ChannelFilterComponent(String name,
String desc) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Program program)
Checks a program if it is acceptable by the FilterComponent.
|
Channel[] |
getChannels() |
String |
getDescription()
Gets the description of a FilterComponent.
|
String |
getName()
Gets the name of a FilterComponent.
|
JPanel |
getSettingsPanel()
Gets the settings panel for a FilterComponent.
|
int |
getVersion()
Gets the version number of a FilterComponent.
|
void |
read(ObjectInputStream in,
int version)
Loads the settings of a FilterComponent from an ObjectInputStream.
|
void |
saveSettings()
Is called when the settings should be saved (aka the users pressed the OK-Button in the Settings Dialog)
|
void |
setDescription(String desc)
Sets the description of a FilterComponent.
|
void |
setName(String name)
Sets the name of a FilterComponent.
|
String |
toString() |
void |
write(ObjectOutputStream out)
Saves the settings of a FilterComponent to an ObjectOutputStream.
|
public void read(ObjectInputStream in, int version) throws IOException, ClassNotFoundException
FilterComponent
read
in interface FilterComponent
in
- The stream to read from.version
- The version of the data.IOException
ClassNotFoundException
public void write(ObjectOutputStream out) throws IOException
FilterComponent
write
in interface FilterComponent
out
- The stream to write to.IOException
public void saveSettings()
FilterComponent
saveSettings
in interface FilterComponent
public JPanel getSettingsPanel()
FilterComponent
getSettingsPanel
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 int getVersion()
FilterComponent
getVersion
in interface FilterComponent
public String getName()
FilterComponent
getName
in interface FilterComponent
public String getDescription()
FilterComponent
getDescription
in interface FilterComponent
public void setName(String name)
FilterComponent
setName
in interface FilterComponent
name
- The new name of the FilterComponent.public void setDescription(String desc)
FilterComponent
setDescription
in interface FilterComponent
desc
- The new description of the FilterComponent.public Channel[] getChannels()
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)