Constructor and Description |
---|
ProgramTime()
Create ProgramTime
|
ProgramTime(Program prg)
Create ProgramTime
|
ProgramTime(Program prg,
Date start,
Date end)
Create ProgramTime
|
ProgramTime(ProgramTime time)
Create ProgramTime
|
Modifier and Type | Method and Description |
---|---|
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
|
public ProgramTime()
public ProgramTime(Program prg)
prg
- Programpublic ProgramTime(Program prg, Date start, Date end)
prg
- Programstart
- Start-Timeend
- End-Timepublic ProgramTime(ProgramTime time)
time
- copy from this ProgramTimepublic 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 void writeData(ObjectOutputStream out) throws IOException
out
- save to this streamIOException
- problems during save operationpublic void readData(ObjectInputStream in) throws IOException, ClassNotFoundException
in
- read data from this streamIOException
- problems during load operationClassNotFoundException
- problem during class creationpublic boolean checkIfRemovedOrUpdateInstead()
true
if the program was deleted, false
instead.public int getLength()
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)