public interface FilterComponent
Modifier and Type | Interface and Description |
---|---|
static class |
FilterComponent.NameComparator
comparator for filter components (comparing by name)
|
static class |
FilterComponent.TypeComparator
comparator for filter components (comparing by string representation)
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Program program)
Checks a program if it is acceptable by the FilterComponent.
|
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.
|
void |
write(ObjectOutputStream out)
Saves the settings of a FilterComponent to an ObjectOutputStream.
|
int getVersion()
boolean accept(Program program)
program
- The program to check.true
if the program is acceptable by the FilterComponent, false
otherwise.void read(ObjectInputStream in, int version) throws IOException, ClassNotFoundException
in
- The stream to read from.version
- The version of the data.IOException
ClassNotFoundException
void write(ObjectOutputStream out) throws IOException
out
- The stream to write to.IOException
JPanel getSettingsPanel()
void saveSettings()
String getName()
String getDescription()
void setName(String name)
name
- The new name of the FilterComponent.void setDescription(String desc)
desc
- The new description of the FilterComponent.TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)