|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcaptureplugin.drivers.utils.ProgramTime
public class ProgramTime
A combination of Start/End-Time and the Program
| Constructor Summary | |
|---|---|
ProgramTime()
Create ProgramTime |
|
ProgramTime(Program prg)
Create ProgramTime |
|
ProgramTime(Program prg,
Date start,
Date end)
Create ProgramTime |
|
ProgramTime(ProgramTime time)
Create ProgramTime |
|
| Method Summary | |
|---|---|
void |
addMinutesToEnd(int min)
Add Minutes to End-Time |
void |
addMinutesToStart(int min)
Add Minutes to the Start-Time |
boolean |
checkIfRemovedOrUpdateInstead()
Checks if the program of this ProgramTime was deleted or if it has not updated instead renew the instance of it. |
Object |
clone()
Clone |
Date |
getEnd()
Returns the End-Time |
Calendar |
getEndAsCalendar()
|
int |
getLength()
Calculates the time difference between start and end in minutes |
Program |
getProgram()
Returns the Program |
Date |
getStart()
Returns the Start-Time |
Calendar |
getStartAsCalendar()
Returns the Start-Time as Calendar |
String |
getTitle()
Get the Title |
void |
readData(ObjectInputStream in)
Read Data from Stream |
void |
setEnd(Date end)
Sets the End-Time |
void |
setProgram(Program prg)
Sets the Program |
void |
setStart(Date start)
Set the Start-Time |
void |
setTitle(String title)
Seth the Title |
void |
writeData(ObjectOutputStream out)
Save Data into Stream |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgramTime()
public ProgramTime(Program prg)
prg - Program
public ProgramTime(Program prg,
Date start,
Date end)
prg - Programstart - Start-Timeend - End-Timepublic ProgramTime(ProgramTime time)
time - copy from this ProgramTime| Method Detail |
|---|
public void setProgram(Program prg)
prg - Programpublic Program getProgram()
public void setStart(Date start)
start - new start-timepublic Date getStart()
public Calendar getStartAsCalendar()
public void setEnd(Date end)
end - new end-timepublic Date getEnd()
public Calendar getEndAsCalendar()
public void addMinutesToStart(int min)
min - Minutes to addpublic void addMinutesToEnd(int min)
min - Minutes to addpublic String getTitle()
public void setTitle(String title)
title - new Titlepublic Object clone()
clone in class Object
public void writeData(ObjectOutputStream out)
throws IOException
out - save to this stream
IOException - problems during save operation
public void readData(ObjectInputStream in)
throws IOException,
ClassNotFoundException
in - read data from this stream
IOException - problems during load operation
ClassNotFoundException - problem during class creationpublic boolean checkIfRemovedOrUpdateInstead()
true if the program was deleted, false instead.public int getLength()
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||