TV-Browser 2.7.5 API

tvbrowser.core.filters.filtercomponents
Class DayFilterComponent

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

public class DayFilterComponent
extends Object
implements FilterComponent

This Filter Filters for certain Days of the Week

Author:
bodum

Nested Class Summary
 
Nested classes/interfaces inherited from interface tvbrowser.core.filters.FilterComponent
FilterComponent.NameComparator, FilterComponent.TypeComparator
 
Field Summary
(package private)  JCheckBox mFriday
           
(package private)  JCheckBox mMonday
           
(package private)  JCheckBox mSaturday
           
(package private)  JCheckBox mSunday
           
(package private)  JCheckBox mThursday
           
(package private)  JCheckBox mTuesday
           
(package private)  JCheckBox mWednesday
           
 
Constructor Summary
DayFilterComponent()
           
DayFilterComponent(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.
 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
 

Field Detail

mMonday

JCheckBox mMonday

mTuesday

JCheckBox mTuesday

mWednesday

JCheckBox mWednesday

mThursday

JCheckBox mThursday

mFriday

JCheckBox mFriday

mSaturday

JCheckBox mSaturday

mSunday

JCheckBox mSunday
Constructor Detail

DayFilterComponent

public DayFilterComponent(String name,
                          String desc)

DayFilterComponent

public DayFilterComponent()
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

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

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.

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)