public interface Program
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MARK_PRIORITY
Deprecated.
since 2.5.3 use MIN_MARK_PRIORITY instead
|
static int |
HIGHER_MEDIUM_MARK_PRIORITY |
static int |
INFO_AUDIO_DESCRIPTION
Audio description is available for people with limited vision.
|
static int |
INFO_AUDIO_DOLBY_DIGITAL_5_1
dolby digital 5.1 audio
|
static int |
INFO_AUDIO_DOLBY_SURROUND
dolby surround audio
|
static int |
INFO_AUDIO_MONO
single channel audio
|
static int |
INFO_AUDIO_STEREO
double channel audio
|
static int |
INFO_AUDIO_TWO_CHANNEL_TONE
Audio channels with different languages are available.
|
static int |
INFO_CATEGORIE_ARTS
This program is arts, theater, music
|
static int |
INFO_CATEGORIE_CHILDRENS
This program is especially suitable for children
|
static int |
INFO_CATEGORIE_DOCUMENTARY
This program is a documentary or a feature
|
static int |
INFO_CATEGORIE_MAGAZINE_INFOTAINMENT
This program is a magazine or infotainment
|
static int |
INFO_CATEGORIE_MOVIE
This program is a movie.
|
static int |
INFO_CATEGORIE_NEWS
This program is News
|
static int |
INFO_CATEGORIE_OTHERS
This program does not fit in any of the other categories
|
static int |
INFO_CATEGORIE_SERIES
This program is a series.
|
static int |
INFO_CATEGORIE_SHOW
This program is Show
|
static int |
INFO_CATEGORIE_SPORTS
This program is sports
|
static int |
INFO_LIVE
Program is live.
|
static int |
INFO_NEW
This program has not been on air before.
|
static int |
INFO_ORIGINAL_WITH_SUBTITLE
Original with subtitle.
|
static int |
INFO_SUBTITLE
Deprecated.
Use
INFO_SUBTITLE_FOR_AURALLY_HANDICAPPED
or INFO_ORIGINAL_WITH_SUBTITLE instead. |
static int |
INFO_SUBTITLE_FOR_AURALLY_HANDICAPPED
A subtitle for aurally handicapped.
|
static int |
INFO_VISION_16_TO_9
video aspect ratio 16:9 (widescreen)
|
static int |
INFO_VISION_4_TO_3
video aspect ratio 4:3
|
static int |
INFO_VISION_BLACK_AND_WHITE
black and white, no color
|
static int |
INFO_VISION_HD
video high definition quality
|
static int |
IS_VALID_STATE |
static int |
LOWER_MEDIUM_MARK_PRIORITY |
static String |
MARK_PRIORITY
The key for the value of an action, to put the mark priority in
|
static int |
MAX_MARK_PRIORITY |
static int |
MEDIUM_MARK_PRIORITY |
static int |
MIN_MARK_PRIORITY |
static int |
NO_MARK_PRIORITY |
static int |
WAS_DELETED_STATE |
static int |
WAS_UPDATED_STATE |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener listener)
Adds a ChangeListener to the program.
|
byte[] |
getBinaryField(ProgramFieldType type)
Gets the value of a binary field from the program.
|
Channel |
getChannel() |
Date |
getDate()
get the date when the program starts.
|
String |
getDateString()
get the date of this program as nicely formatted string
|
String |
getDescription()
Gets the description of the program
|
String |
getEndTimeString()
get the end time of this program as nicely formatted string
|
int |
getFieldCount()
Gets the number of fields this program has.
|
Iterator<ProgramFieldType> |
getFieldIterator()
Gets an iterator over the types of all fields this program has.
|
int |
getHours()
Gets the hour-component of the start time of the program.
|
String |
getID()
Gets the ID of this program.
|
int |
getInfo() |
int |
getIntField(ProgramFieldType type)
Gets the value of a int field from the program.
|
String |
getIntFieldAsString(ProgramFieldType type)
Gets the value of a int field as String.
|
int |
getLength()
Gets the length of this program in minutes.
|
PluginAccess[] |
getMarkedByPlugins()
Deprecated.
Use
getMarkerArr() |
Marker[] |
getMarkerArr()
Gets all
Marker s that have marked this program. |
int |
getMarkPriority()
Gets the priority of the marking of this program.
|
int |
getMinutes()
Gets the minute-component of the start time of the program.
|
int |
getProgramState()
Returns the state of this program.
|
String |
getShortInfo() |
int |
getStartTime()
Gets the the start time of the program in minutes after midnight.
|
String |
getTextField(ProgramFieldType type)
Gets the value of a text field from the program.
|
int |
getTimeField(ProgramFieldType type)
Gets the value of a time field from the program.
|
String |
getTimeFieldAsString(ProgramFieldType type)
Gets the value of a time field as String of the pattern "h:mm".
|
String |
getTimeString()
get the start time of this program as nicely formatted string
|
String |
getTitle() |
boolean |
isExpired()
Gets whether this program is expired.
|
boolean |
isOnAir()
Gets whether this program is marked as "on air".
|
void |
mark(Marker plugin)
Marks the program for a plugin.
|
void |
mark(Plugin javaPlugin)
Marks the program for a Java plugin.
|
void |
removeChangeListener(ChangeListener listener)
Removes a ChangeListener from the program.
|
void |
unmark(Marker plugin)
Removes the marks from the program for a plugin.
|
void |
unmark(Plugin javaPlugin)
Removes the marks from the program for a Java plugin.
|
void |
validateMarking()
Informs the ChangeListeners for repainting if a Plugin
uses more than one Icon for the Program.
|
static final int INFO_VISION_BLACK_AND_WHITE
static final int INFO_VISION_4_TO_3
static final int INFO_VISION_16_TO_9
static final int INFO_AUDIO_MONO
static final int INFO_AUDIO_STEREO
static final int INFO_AUDIO_DOLBY_SURROUND
static final int INFO_AUDIO_DOLBY_DIGITAL_5_1
static final int INFO_AUDIO_TWO_CHANNEL_TONE
static final int INFO_SUBTITLE_FOR_AURALLY_HANDICAPPED
static final int INFO_LIVE
static final int INFO_ORIGINAL_WITH_SUBTITLE
static final int INFO_SUBTITLE
static final int INFO_CATEGORIE_MOVIE
static final int INFO_CATEGORIE_SERIES
static final int INFO_NEW
static final int INFO_AUDIO_DESCRIPTION
static final int INFO_CATEGORIE_NEWS
static final int INFO_CATEGORIE_SHOW
static final int INFO_CATEGORIE_MAGAZINE_INFOTAINMENT
static final int INFO_VISION_HD
static final int INFO_CATEGORIE_DOCUMENTARY
static final int INFO_CATEGORIE_ARTS
static final int INFO_CATEGORIE_SPORTS
static final int INFO_CATEGORIE_CHILDRENS
static final int INFO_CATEGORIE_OTHERS
static final int IS_VALID_STATE
static final int WAS_UPDATED_STATE
static final int WAS_DELETED_STATE
static final int NO_MARK_PRIORITY
static final int MIN_MARK_PRIORITY
static final int LOWER_MEDIUM_MARK_PRIORITY
static final int MEDIUM_MARK_PRIORITY
static final int HIGHER_MEDIUM_MARK_PRIORITY
static final int MAX_MARK_PRIORITY
static final int DEFAULT_MARK_PRIORITY
static final String MARK_PRIORITY
void addChangeListener(ChangeListener listener)
listener
- the ChangeListener to addremoveChangeListener(javax.swing.event.ChangeListener)
void removeChangeListener(ChangeListener listener)
listener
- the ChangeListener to removeaddChangeListener(javax.swing.event.ChangeListener)
String getID()
String getTitle()
String getShortInfo()
String getDescription()
null
, if no description is availableint getStartTime()
int getHours()
int getMinutes()
int getLength()
int getInfo()
String getTimeString()
String getDateString()
String getEndTimeString()
Channel getChannel()
Date getDate()
byte[] getBinaryField(ProgramFieldType type)
type
- The type of the wanted field. Must have a binary format.null
, if there is no
value for this field.String getTextField(ProgramFieldType type)
type
- The type of the wanted field. Must have a text format.null
, if there is no
value for this field.int getIntField(ProgramFieldType type)
type
- The type of the wanted field. Must have a int format.-1
, if there is no
value for this field.String getIntFieldAsString(ProgramFieldType type)
type
- The type of the wanted field. Must have a int format.null
, if there is
no value for this field.int getTimeField(ProgramFieldType type)
type
- The type of the wanted field. Must have a time format.-1
, if there is no
value for this field.String getTimeFieldAsString(ProgramFieldType type)
type
- The type of the wanted field. Must have a time format.null
, if there is
no value for this field.int getFieldCount()
Iterator<ProgramFieldType> getFieldIterator()
ProgramFieldType
s.void mark(Plugin javaPlugin)
javaPlugin
- The plugin to mark the program for.void unmark(Plugin javaPlugin)
If the program wasn't marked for the plugin, nothing happens.
javaPlugin
- The plugin to remove the mark for.void mark(Marker plugin)
plugin
- The plugin to mark the program for.void unmark(Marker plugin)
If the program wasn't marked for the plugin, nothing happens.
plugin
- The plugin to remove the mark for.boolean isOnAir()
PluginAccess[] getMarkedByPlugins()
getMarkerArr()
PluginAccess
s that have marked this program.boolean isExpired()
int getProgramState()
void validateMarking()
Plugin.getMarkIconsForProgram(Program)
int getMarkPriority()
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)