|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttvdataservice.MutableChannelDayProgram
public class MutableChannelDayProgram
A list of the programs of one channel and one day.
This implementation is mutable, meaning you can add programs. These programs are automatically sorted by time.
| Constructor Summary | |
|---|---|
MutableChannelDayProgram(Date date,
Channel channel)
Creates a new instance of MutableChannelDayProgram. |
|
| Method Summary | |
|---|---|
void |
addProgram(Program program)
Adds a program. |
boolean |
equals(ChannelDayProgram dayProgram)
Compare with the given dayProgram |
boolean |
getAndResetChangedByPluginState()
Get if the day program was changed by a plugin and reset the changed state. |
Channel |
getChannel()
Returns the channel of this day program. |
Date |
getDate()
Returns the date of this day program. |
boolean |
getLastProgramHadEndOnUpdate()
Gets the last program end time state on data update. |
Program |
getProgram(String progID)
Returns the program object having the specified ID. |
Program |
getProgramAt(int index)
Returns the program at the specified index. |
int |
getProgramCount()
Gets the number of programs in this list. |
Iterator<Program> |
getPrograms()
Returns an iterator containing all programs. |
boolean |
isComplete()
Returns whether this channel day program is complete. |
void |
removeAllPrograms()
Removes all programs from this day program. |
void |
setLastProgramHadEndOnUpdate(boolean value)
Sets the last program end time state on data update. |
void |
setWasChangedByPlugin()
Sets the changed state to let the day program be saved again to take over the changes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MutableChannelDayProgram(Date date,
Channel channel)
date - The datechannel - The channel| Method Detail |
|---|
public Channel getChannel()
getChannel in interface ChannelDayProgrampublic Date getDate()
getDate in interface ChannelDayProgrampublic Program getProgram(String progID)
getProgram in interface ChannelDayProgramprogID - The ID of the wanted program.
public int getProgramCount()
getProgramCount in interface ChannelDayProgrampublic Program getProgramAt(int index)
getProgramAt in interface ChannelDayProgramindex - The index of the wanted program.
public void addProgram(Program program)
program - The program to add. This program will automatically be put
in the right position in the list, so the list stays ordered.public void removeAllPrograms()
public Iterator<Program> getPrograms()
getPrograms in interface ChannelDayProgrampublic boolean isComplete()
Return true if the last program ends after midnight. Future implementations may check for gaps too.
isComplete in interface ChannelDayProgrampublic void setLastProgramHadEndOnUpdate(boolean value)
value - the last program end time on data updatepublic boolean getLastProgramHadEndOnUpdate()
getLastProgramHadEndOnUpdate in interface ChannelDayProgrampublic void setWasChangedByPlugin()
public boolean getAndResetChangedByPluginState()
public boolean equals(ChannelDayProgram dayProgram)
dayProgram -
true, if all programs of the day match (with each field)
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||