public class TVRaterFilter extends PluginsFilterComponent
FilterComponent.NameComparator, FilterComponent.TypeComparator
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
_best
Show programs that are better or worse than the
_value |
(package private) int |
_value
Accept-Value
|
Constructor and Description |
---|
TVRaterFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Program program)
Accept Programs if rating fits
|
JPanel |
getSettingsPanel()
Gets the settings panel for this filter component.
|
String |
getUserPresentableClassName()
Returns the user presentable name of this class.
|
int |
getVersion()
Gets the version number of a FilterComponent.
|
void |
read(ObjectInputStream in,
int version)
Load settings
|
void |
saveSettings()
Is called when the settings should be saved (aka the users pressed the OK-Button in the Settings Dialog)
|
void |
write(ObjectOutputStream out)
Store Settigns
|
getDescription, getName, setDescription, setName, toString
int _value
boolean _best
_value
public String getUserPresentableClassName()
PluginsFilterComponent
null
, return always a
clear name that discribes this filter component
for selection in the filter component dialog.getUserPresentableClassName
in class PluginsFilterComponent
public int getVersion()
FilterComponent
public boolean accept(Program program)
program
- check this programpublic void read(ObjectInputStream in, int version) throws IOException, ClassNotFoundException
in
- load settings from this streamversion
- Version of the streamIOException
- Problems reading the DataClassNotFoundException
- Problems creating classes while readingpublic void write(ObjectOutputStream out) throws IOException
out
- store settings hereIOException
- Exception while storing the datapublic JPanel getSettingsPanel()
PluginsFilterComponent
getSettingsPanel
in interface FilterComponent
getSettingsPanel
in class PluginsFilterComponent
public void saveSettings()
PluginsFilterComponent
saveSettings
in interface FilterComponent
saveSettings
in class PluginsFilterComponent
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)