TV-Browser 3.3.3 API

tvbrowser.core.filters.filtercomponents
Class SingleTitleFilterComponent

java.lang.Object
  extended by tvbrowser.core.filters.filtercomponents.AbstractFilterComponent
      extended by tvbrowser.core.filters.filtercomponents.SingleTitleFilterComponent
All Implemented Interfaces:
FilterComponent

public class SingleTitleFilterComponent
extends AbstractFilterComponent


Nested Class Summary
 
Nested classes/interfaces inherited from interface tvbrowser.core.filters.FilterComponent
FilterComponent.NameComparator, FilterComponent.TypeComparator
 
Constructor Summary
SingleTitleFilterComponent()
           
SingleTitleFilterComponent(java.lang.String name, java.lang.String desc)
           
 
Method Summary
 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)
          read the settings
 void saveSettings()
          save the settings
 java.lang.String toString()
           
 void write(java.io.ObjectOutputStream out)
          write the settings
 
Methods inherited from class tvbrowser.core.filters.filtercomponents.AbstractFilterComponent
getDescription, getName, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingleTitleFilterComponent

public SingleTitleFilterComponent(java.lang.String name,
                                  java.lang.String desc)

SingleTitleFilterComponent

public SingleTitleFilterComponent()
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.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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
read the settings

Parameters:
in - The stream to read from.
version - The version of the data.
Throws:
java.io.IOException
java.lang.ClassNotFoundException
See Also:
FilterComponent.read(java.io.ObjectInputStream, int)

write

public void write(java.io.ObjectOutputStream out)
           throws java.io.IOException
write the settings

Parameters:
out - The stream to write to.
Throws:
java.io.IOException
See Also:
FilterComponent.write(java.io.ObjectOutputStream)

getTypeDescription

public java.lang.String getTypeDescription()
Description copied from interface: FilterComponent
Gets the description of a FilterComponent type.

Specified by:
getTypeDescription in interface FilterComponent
Overrides:
getTypeDescription in class AbstractFilterComponent
Returns:
The description of the FilterComponent type.

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()
save the settings

See Also:
FilterComponent.saveSettings()

TV-Browser 3.3.3 API

TV-Browser 3.3.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)