TV-Browser 2.7.5 API

tvbrowser.core.filters.filtercomponents
Class ProgramMarkingPriorityFilterComponent

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

public class ProgramMarkingPriorityFilterComponent
extends Object
implements FilterComponent

A filter component for tracking programs that have a selected mark priority.

Since:
2.5.1
Author:
René Mach

Nested Class Summary
 
Nested classes/interfaces inherited from interface tvbrowser.core.filters.FilterComponent
FilterComponent.NameComparator, FilterComponent.TypeComparator
 
Constructor Summary
ProgramMarkingPriorityFilterComponent()
          Creates an new instance of this filter component.
ProgramMarkingPriorityFilterComponent(String name, String desc)
          Creates an instance of this filter component with given name and given description.
 
Method Summary
 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.
 String toString()
           
 void write(ObjectOutputStream out)
          Saves the settings of a FilterComponent to an ObjectOutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProgramMarkingPriorityFilterComponent

public ProgramMarkingPriorityFilterComponent()
Creates an new instance of this filter component.


ProgramMarkingPriorityFilterComponent

public ProgramMarkingPriorityFilterComponent(String name,
                                             String desc)
Creates an instance of this filter component with given name and given description.

Parameters:
name - The name of this filter component.
desc - The description for this filter component.
Method Detail

accept

public boolean accept(Program program)
Description copied from interface: FilterComponent
Checks a program if it is acceptable by the FilterComponent.

Specified by:
accept in interface FilterComponent
Parameters:
program - The program to check.
Returns:
true if the program is acceptable by the FilterComponent, false otherwise.

getDescription

public String getDescription()
Description copied from interface: FilterComponent
Gets the description of a FilterComponent.

Specified by:
getDescription in interface FilterComponent
Returns:
The description of the FilterComponent.

getName

public String getName()
Description copied from interface: FilterComponent
Gets the name of a FilterComponent.

Specified by:
getName in interface FilterComponent
Returns:
The name of the FilterComponent.

getSettingsPanel

public JPanel getSettingsPanel()
Description copied from interface: FilterComponent
Gets the settings panel for a FilterComponent.

Specified by:
getSettingsPanel in interface FilterComponent
Returns:
The settings panel the FilterComponent.

getVersion

public int getVersion()
Description copied from interface: FilterComponent
Gets the version number of a FilterComponent.

Specified by:
getVersion in interface FilterComponent
Returns:
The version number of a FilterComponent.

read

public void read(ObjectInputStream in,
                 int version)
          throws IOException,
                 ClassNotFoundException
Description copied from interface: FilterComponent
Loads the settings of a FilterComponent from an ObjectInputStream.

Specified by:
read in interface FilterComponent
Parameters:
in - The stream to read from.
version - The version of the data.
Throws:
IOException
ClassNotFoundException

saveSettings

public void saveSettings()
Description copied from interface: FilterComponent
Is called when the settings should be saved (aka the users pressed the OK-Button in the Settings Dialog)

Specified by:
saveSettings in interface FilterComponent

setDescription

public void setDescription(String desc)
Description copied from interface: FilterComponent
Sets the description of a FilterComponent.

Specified by:
setDescription in interface FilterComponent
Parameters:
desc - The new description of the FilterComponent.

setName

public void setName(String name)
Description copied from interface: FilterComponent
Sets the name of a FilterComponent.

Specified by:
setName in interface FilterComponent
Parameters:
name - The new name of the FilterComponent.

write

public void write(ObjectOutputStream out)
           throws IOException
Description copied from interface: FilterComponent
Saves the settings of a FilterComponent to an ObjectOutputStream.

Specified by:
write in interface FilterComponent
Parameters:
out - The stream to write to.
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)