TV-Browser 3.3.3 API

tvbrowser.core.filters.filtercomponents
Class TimeFilterComponent

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

public class TimeFilterComponent
extends AbstractFilterComponent


Nested Class Summary
 
Nested classes/interfaces inherited from interface tvbrowser.core.filters.FilterComponent
FilterComponent.NameComparator, FilterComponent.TypeComparator
 
Constructor Summary
TimeFilterComponent()
           
TimeFilterComponent(java.lang.String name, java.lang.String description)
           
 
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.
 int getTimeFromDate(java.util.Date time)
           
 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)
          Loads the settings of a FilterComponent from an ObjectInputStream.
 void saveSettings()
          Is called when the settings should be saved (i.e. the users pressed the OK button in the settings dialog)
 java.util.Date setTimeToDate(int minutes)
           
 java.lang.String toString()
           
 void write(java.io.ObjectOutputStream out)
          Saves the settings of a FilterComponent to an ObjectOutputStream.
 
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

TimeFilterComponent

public TimeFilterComponent()

TimeFilterComponent

public TimeFilterComponent(java.lang.String name,
                           java.lang.String description)
Method Detail

read

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

Parameters:
in - The stream to read from.
version - The version of the data.
Throws:
java.io.IOException

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.

toString

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

saveSettings

public void saveSettings()
Description copied from interface: FilterComponent
Is called when the settings should be saved (i.e. the users pressed the OK button in the settings dialog)


write

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

Parameters:
out - The stream to write to.
Throws:
java.io.IOException

getSettingsPanel

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

Returns:
The settings panel the FilterComponent.

setTimeToDate

public java.util.Date setTimeToDate(int minutes)

getTimeFromDate

public int getTimeFromDate(java.util.Date time)

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.

getVersion

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

Returns:
The version number of a FilterComponent.

TV-Browser 3.3.3 API

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