TV-Browser 2.7.5 API

tvbrowser.core.filters.filtercomponents
Class PluginFilterComponent

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

public class PluginFilterComponent
extends Object
implements FilterComponent


Nested Class Summary
 
Nested classes/interfaces inherited from interface tvbrowser.core.filters.FilterComponent
FilterComponent.NameComparator, FilterComponent.TypeComparator
 
Constructor Summary
PluginFilterComponent()
           
PluginFilterComponent(String name, String desc)
           
 
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.
 String getPluginId()
           
 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

PluginFilterComponent

public PluginFilterComponent(String name,
                             String desc)

PluginFilterComponent

public PluginFilterComponent()
Method Detail

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

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

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.

getPluginId

public String getPluginId()
Returns:
The id of the used plugin.

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.

toString

public String toString()
Overrides:
toString in class Object

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

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.

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.

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.

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.

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.

TV-Browser 2.7.5 API

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