TV-Browser 2.7.5 API

tvbrowser.core.filters
Class FilterManagerImpl

java.lang.Object
  extended by tvbrowser.core.filters.FilterManagerImpl
All Implemented Interfaces:
FilterManager

public class FilterManagerImpl
extends Object
implements FilterManager

Is the implementation of the FilterManager.

Since:
2.5
Author:
René Mach

Method Summary
 boolean addFilter(PluginsProgramFilter filter)
           
 boolean deleteFilter(PluginsProgramFilter filter)
           
 ProgramFilter getAllFilter()
          Gets the "ShowAll" filter of the program table.
 ProgramFilter[] getAvailableFilters()
          Returns an array of all available filters.
 ProgramFilter getCurrentFilter()
          Returns the current selected filter of the program table.
 ProgramFilter getDefaultFilter()
          Returns the default filter of the program table.
static FilterManager getInstance()
          Creates an instance of this class if there is no one and returns it.
 boolean isPluginFilter(ProgramFilter filter)
          Tests if the filter is a plugin filter.
 void setCurrentFilter(ProgramFilter filter)
          Activates a filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FilterManager getInstance()
Creates an instance of this class if there is no one and returns it.

Returns:
The instance of this class.

getCurrentFilter

public ProgramFilter getCurrentFilter()
Returns the current selected filter of the program table.

Specified by:
getCurrentFilter in interface FilterManager
Returns:
The current selected filter of the program table.

setCurrentFilter

public void setCurrentFilter(ProgramFilter filter)
Activates a filter.

Specified by:
setCurrentFilter in interface FilterManager
Parameters:
filter - The filter to activate.

getAvailableFilters

public ProgramFilter[] getAvailableFilters()
Returns an array of all available filters.

Specified by:
getAvailableFilters in interface FilterManager
Returns:
An array of all available filters.

addFilter

public boolean addFilter(PluginsProgramFilter filter)
Specified by:
addFilter in interface FilterManager
Parameters:
filter - The filter to add.
Returns:
True if the filter could be added.

deleteFilter

public boolean deleteFilter(PluginsProgramFilter filter)
Specified by:
deleteFilter in interface FilterManager
Parameters:
filter - The filter to delete.
Returns:
True if the filter could be deleted.

getDefaultFilter

public ProgramFilter getDefaultFilter()
Returns the default filter of the program table.

Specified by:
getDefaultFilter in interface FilterManager
Returns:
The default filter of the program table.

getAllFilter

public ProgramFilter getAllFilter()
Gets the "ShowAll" filter of the program table.

Specified by:
getAllFilter in interface FilterManager
Returns:
The "ShowAll" filter of the program table.

isPluginFilter

public boolean isPluginFilter(ProgramFilter filter)
Tests if the filter is a plugin filter.

Specified by:
isPluginFilter in interface FilterManager
Parameters:
filter - The filter to test.
Returns:
True if the filter is a plugin filter, false otherwise.
Since:
2.6

TV-Browser 2.7.5 API

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