|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FilterComponent
An interface for the program filter system of TV-Browser.
Nested Class Summary | |
---|---|
static class |
FilterComponent.NameComparator
comparator for filter components (comparing by name) |
static class |
FilterComponent.TypeComparator
comparator for filter components (comparing by string representation) |
Method Summary | |
---|---|
boolean |
accept(Program program)
Checks a program if it is acceptable by the FilterComponent. |
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. |
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. |
Method Detail |
---|
int getVersion()
boolean accept(Program program)
program
- The program to check.
true
if the program is acceptable by the FilterComponent, false
otherwise.void read(java.io.ObjectInputStream in, int version) throws java.io.IOException, java.lang.ClassNotFoundException
in
- The stream to read from.version
- The version of the data.
java.io.IOException
java.lang.ClassNotFoundException
void write(java.io.ObjectOutputStream out) throws java.io.IOException
out
- The stream to write to.
java.io.IOException
javax.swing.JPanel getSettingsPanel()
void saveSettings()
java.lang.String getName()
java.lang.String getTypeDescription()
java.lang.String getDescription()
void setName(java.lang.String name)
name
- The new name of the FilterComponent.void setDescription(java.lang.String desc)
desc
- The new description of the FilterComponent.
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |