public class ProgramItem extends java.lang.Object implements java.lang.Comparable<ProgramItem>
Constructor and Description |
---|
ProgramItem() |
ProgramItem(Program prog) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ProgramItem other) |
Date |
getDate()
Get the date of the program.
|
Program |
getProgram() |
java.lang.String |
getProperty(java.lang.String key) |
int |
getStartTime()
get the start time of the program in minutes after midnight
|
void |
read(java.io.ObjectInputStream in)
read the object from the input stream.
|
void |
setProgram(Program prog) |
void |
setProperty(java.lang.String key,
java.lang.String value) |
java.lang.String |
toString() |
void |
write(java.io.ObjectOutputStream out)
write this object to the stream.
|
public ProgramItem(Program prog)
public ProgramItem()
public void read(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
in
- the stream to read fromjava.io.IOException
- if something went wrong reading the streamjava.lang.ClassNotFoundException
- if the object could not be deserializedpublic void write(java.io.ObjectOutputStream out) throws java.io.IOException
out
- the stream to write tojava.io.IOException
- if something went wrongpublic void setProgram(Program prog)
public Program getProgram()
public void setProperty(java.lang.String key, java.lang.String value)
public java.lang.String getProperty(java.lang.String key)
public java.lang.String toString()
toString
in class java.lang.Object
public Date getDate()
public int getStartTime()
public int compareTo(ProgramItem other)
compareTo
in interface java.lang.Comparable<ProgramItem>
TV-Browser 3.4.4, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)