TV-Browser 2.7.5 API

tvbrowser.core.filters.filtercomponents
Class TimeFilterComponent

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

public class TimeFilterComponent
extends Object
implements FilterComponent


Nested Class Summary
 
Nested classes/interfaces inherited from interface tvbrowser.core.filters.FilterComponent
FilterComponent.NameComparator, FilterComponent.TypeComparator
 
Constructor Summary
TimeFilterComponent()
           
TimeFilterComponent(String name, String 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 getTimeFromDate(Date time)
           
 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.
 Date setTimeToDate(int minutes)
           
 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

TimeFilterComponent

public TimeFilterComponent()

TimeFilterComponent

public TimeFilterComponent(String name,
                           String description)
Method Detail

read

public void read(ObjectInputStream in,
                 int version)
          throws IOException
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

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

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

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.

setTimeToDate

public Date setTimeToDate(int minutes)

getTimeFromDate

public int getTimeFromDate(Date time)

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.

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)