TV-Browser 2.7.5 API

devplugin
Class PluginsFilterComponent

java.lang.Object
  extended by devplugin.PluginsFilterComponent
All Implemented Interfaces:
FilterComponent
Direct Known Subclasses:
MarkListFilterComponent, TVRaterFilter

public abstract class PluginsFilterComponent
extends Object
implements FilterComponent

Overwrite this class to support filter components for your plugin.

Author:
René Mach

Nested Class Summary
 
Nested classes/interfaces inherited from interface tvbrowser.core.filters.FilterComponent
FilterComponent.NameComparator, FilterComponent.TypeComparator
 
Constructor Summary
PluginsFilterComponent()
           
 
Method Summary
 String getDescription()
          Gets the description of this filter component.
 String getName()
          Gets the name of this filter component.
 JPanel getSettingsPanel()
          Gets the settings panel for this filter component.
abstract  String getUserPresentableClassName()
          Returns the user presentable name of this class.
 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 this filter component.
 void setName(String name)
          Sets the name of this filter component.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface tvbrowser.core.filters.FilterComponent
accept, getVersion, read, write
 

Constructor Detail

PluginsFilterComponent

public PluginsFilterComponent()
Method Detail

getName

public final String getName()
Gets the name of this filter component.

Specified by:
getName in interface FilterComponent
Returns:
The name of this filter compoent.

getDescription

public final String getDescription()
Gets the description of this filter component.

Specified by:
getDescription in interface FilterComponent
Returns:
The description of this filter component.

setName

public final void setName(String name)
Sets the name of this filter component.

Specified by:
setName in interface FilterComponent
Parameters:
name - The new name of this filter component.

setDescription

public final void setDescription(String desc)
Sets the description of this filter component.

Specified by:
setDescription in interface FilterComponent
Parameters:
desc - The new description of this filter component.

getSettingsPanel

public JPanel getSettingsPanel()
Gets the settings panel for this filter component.

Specified by:
getSettingsPanel in interface FilterComponent
Returns:
The settings panel for this filter component.

saveSettings

public void saveSettings()
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

getUserPresentableClassName

public abstract String getUserPresentableClassName()
Returns the user presentable name of this class. Don't return null, return always a clear name that discribes this filter component for selection in the filter component dialog.

Returns:
The user presentable name of this class.

toString

public final 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)