|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Program
This interface provides a view of the program object in the host-application.
Field Summary | |
---|---|
static byte |
DEFAULT_PROGRAM_IMPORTANCE
|
static int |
HIGHER_MEDIUM_MARK_PRIORITY
|
static byte |
HIGHER_MEDIUM_PROGRAM_IMPORTANCE
|
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_SIGN_LANGUAGE
This program has sign language |
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 byte |
LOWER_MEDIUM_PROGRAM_IMPORTANCE
|
static java.lang.String |
MARK_PRIORITY
The key for the value of an action, to put the mark priority in |
static int |
MAX_MARK_PRIORITY
|
static byte |
MAX_PROGRAM_IMPORTANCE
|
static int |
MEDIUM_MARK_PRIORITY
|
static byte |
MEDIUM_PROGRAM_IMPORTANCE
|
static int |
MIN_MARK_PRIORITY
|
static byte |
MIN_PROGRAM_IMPORTANCE
|
static int |
NO_MARK_PRIORITY
|
static int |
WAS_DELETED_STATE
|
static int |
WAS_UPDATED_STATE
|
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.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. |
java.lang.String |
getDateString()
get the date of this program as nicely formatted string |
java.lang.String |
getDescription()
Gets the description of the program |
java.lang.String |
getEndTimeString()
get the end time of this program as nicely formatted string |
int |
getFieldCount()
Gets the number of fields this program has. |
java.util.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. |
java.lang.String |
getID()
Gets the ID of this program. |
int |
getInfo()
|
int |
getIntField(ProgramFieldType type)
Gets the value of a int field from the program. |
java.lang.String |
getIntFieldAsString(ProgramFieldType type)
Gets the value of a int field as String. |
int |
getLength()
Gets the length of this program in minutes. |
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. |
java.lang.String |
getShortInfo()
|
int |
getStartTime()
Gets the the start time of the program in minutes after midnight. |
java.lang.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. |
java.lang.String |
getTimeFieldAsString(ProgramFieldType type)
Gets the value of a time field as String of the pattern "h:mm". |
java.lang.String |
getTimeString()
get the start time of this program as nicely formatted string |
java.lang.String |
getTitle()
|
java.lang.String |
getUniqueID()
Gets the unique ID of this program. |
boolean |
hasFieldValue(ProgramFieldType type)
checks if the given field has a non- null value. use this
method if you don't need the value of the field, but only the knowledge
about existence |
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(javax.swing.event.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. |
Field Detail |
---|
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
INFO_ORIGINAL_WITH_SUBTITLE
,
Constant Field Valuesstatic final int INFO_LIVE
static final int INFO_ORIGINAL_WITH_SUBTITLE
INFO_SUBTITLE_FOR_AURALLY_HANDICAPPED
,
Constant Field Valuesstatic 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 INFO_SIGN_LANGUAGE
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 byte DEFAULT_PROGRAM_IMPORTANCE
static final byte MIN_PROGRAM_IMPORTANCE
static final byte LOWER_MEDIUM_PROGRAM_IMPORTANCE
static final byte MEDIUM_PROGRAM_IMPORTANCE
static final byte HIGHER_MEDIUM_PROGRAM_IMPORTANCE
static final byte MAX_PROGRAM_IMPORTANCE
static final java.lang.String MARK_PRIORITY
Method Detail |
---|
void addChangeListener(javax.swing.event.ChangeListener listener)
listener
- the ChangeListener to addremoveChangeListener(javax.swing.event.ChangeListener)
void removeChangeListener(javax.swing.event.ChangeListener listener)
listener
- the ChangeListener to removeaddChangeListener(javax.swing.event.ChangeListener)
java.lang.String getID()
java.lang.String getUniqueID()
java.lang.String getTitle()
java.lang.String getShortInfo()
java.lang.String getDescription()
null
, if no description is availableint getStartTime()
int getHours()
int getMinutes()
int getLength()
int getInfo()
java.lang.String getTimeString()
java.lang.String getDateString()
java.lang.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.java.lang.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.java.lang.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.java.lang.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()
java.util.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()
Marker[] getMarkerArr()
Marker
s that have marked this program.
boolean isExpired()
int getProgramState()
void validateMarking()
Plugin.getMarkIconsForProgram(Program)
int getMarkPriority()
boolean hasFieldValue(ProgramFieldType type)
null
value. use this
method if you don't need the value of the field, but only the knowledge
about existence
type
- field type
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |