- java.lang.Object
-
- tvbrowser.core.filters.filtercomponents.AbstractFilterComponent
-
- tvbrowser.core.filters.filtercomponents.AcceptNoneFilterComponent
-
- All Implemented Interfaces:
FilterComponent
public class AcceptNoneFilterComponent extends AbstractFilterComponent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface tvbrowser.core.filters.FilterComponent
FilterComponent.NameComparator, FilterComponent.TypeComparator
-
-
Constructor Summary
Constructors Constructor Description AcceptNoneFilterComponent(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.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
write(java.io.ObjectOutputStream out)
Saves the settings of a FilterComponent to an ObjectOutputStream.-
Methods inherited from class tvbrowser.core.filters.filtercomponents.AbstractFilterComponent
getDescription, getName, getTypeDescription, setDescription, setName
-
-
-
-
Method Detail
-
getVersion
public int getVersion()
Description copied from interface:FilterComponent
Gets the version number of a FilterComponent.- Returns:
- The version number of a FilterComponent.
-
accept
public boolean accept(Program program)
Description copied from interface:FilterComponent
Checks a program if it is acceptable by the FilterComponent.- Parameters:
program
- The program to check.- Returns:
true
if the program is acceptable by the FilterComponent,false
otherwise.
-
read
public void read(java.io.ObjectInputStream in, int version) throws java.io.IOException, java.lang.ClassNotFoundException
Description copied from interface:FilterComponent
Loads the settings of a FilterComponent from an ObjectInputStream.- Parameters:
in
- The stream to read from.version
- The version of the data.- Throws:
java.io.IOException
- Thrown if an IO operation went wrong.java.lang.ClassNotFoundException
- Thrown if a class could not be found.
-
write
public void write(java.io.ObjectOutputStream out) throws java.io.IOException
Description copied from interface:FilterComponent
Saves the settings of a FilterComponent to an ObjectOutputStream.- Parameters:
out
- The stream to write to.- Throws:
java.io.IOException
- Thrown if an IO operation went wrong.
-
getSettingsPanel
public javax.swing.JPanel getSettingsPanel()
Description copied from interface:FilterComponent
Gets the settings panel for a FilterComponent.- Returns:
- The settings panel the FilterComponent.
-
saveSettings
public void saveSettings()
Description copied from interface:FilterComponent
Is called when the settings should be saved (i.e. the users pressed the OK button in the settings dialog)
-
-