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
|
Program |
getProgram()
Returns the Program
|
Date |
getStart()
Returns the Start-Time
|
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
- public Date getStart()
public void setEnd(Date end)
end
- public Date getEnd()
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
- IOException
public void readData(ObjectInputStream in) throws IOException, ClassNotFoundException
in
- IOException
ClassNotFoundException
public boolean checkIfRemovedOrUpdateInstead()
true
if the program was deleted, false
instead.TV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)