public class KeywordFilterComponent extends AbstractFilterComponent
FilterComponent.NameComparator, FilterComponent.TypeComparator
Constructor and Description |
---|
KeywordFilterComponent() |
KeywordFilterComponent(java.lang.String name,
java.lang.String desc) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Program program)
Checks a program if it is acceptable by the 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)
|
java.lang.String |
toString() |
void |
write(java.io.ObjectOutputStream out)
Saves the settings of a FilterComponent to an ObjectOutputStream.
|
getDescription, getName, setDescription, setName
public KeywordFilterComponent(java.lang.String name, java.lang.String desc)
public KeywordFilterComponent()
public void read(java.io.ObjectInputStream in, int version) throws java.io.IOException, java.lang.ClassNotFoundException
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
out
- The stream to write to.java.io.IOException
public void saveSettings()
FilterComponent
public boolean accept(Program program)
FilterComponent
program
- The program to check.true
if the program is acceptable by the FilterComponent, false
otherwise.public java.lang.String getTypeDescription()
FilterComponent
getTypeDescription
in interface FilterComponent
getTypeDescription
in class AbstractFilterComponent
public javax.swing.JPanel getSettingsPanel()
FilterComponent
public java.lang.String toString()
toString
in class java.lang.Object
public int getVersion()
FilterComponent
TV-Browser 3.4.4, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)