TV-Browser 2.7.5 API

tvbrowser.extras.reminderplugin
Class ReminderListItem

java.lang.Object
  extended by tvbrowser.extras.reminderplugin.ReminderListItem
All Implemented Interfaces:
Comparable<ReminderListItem>

public class ReminderListItem
extends Object
implements Comparable<ReminderListItem>

A class that contains the program for which a reminder should be shown at some time.


Constructor Summary
ReminderListItem(Program prog, int minutes)
          Creates an instance of this class.
ReminderListItem(ProgramItem item)
          Creates an instance of this class.
 
Method Summary
 int compareTo(ReminderListItem other)
           
 void decReferenceCount()
          Decrease the number of set reminders of this item about 1.
 int getMinutes()
          Gets the reminder mintutes of this list item.
 Program getProgram()
          Gets the program of this list item.
 ProgramItem getProgramItem()
          Gets the program item of this list item.
 int getReferenceCount()
          Gets the number of set reminders of this item.
 void incReferenceCount()
          Increase the number of set reminders of this item about 1.
 void setMinutes(int minutes)
          Sets the minutes of this list item.
 void setReferenceCount(int refCnt)
          Sets the number of reminders set for this item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReminderListItem

public ReminderListItem(ProgramItem item)
Creates an instance of this class.

Parameters:
item - The item for this list item.

ReminderListItem

public ReminderListItem(Program prog,
                        int minutes)
Creates an instance of this class.

Parameters:
prog - The program for this item.
minutes - The remider time for this item.
Method Detail

setReferenceCount

public void setReferenceCount(int refCnt)
Sets the number of reminders set for this item.

Parameters:
refCnt - The number of reminders for this item.

getProgramItem

public ProgramItem getProgramItem()
Gets the program item of this list item.

Returns:
The program item.

getReferenceCount

public int getReferenceCount()
Gets the number of set reminders of this item.

Returns:
The number of set reminders of this item.

incReferenceCount

public void incReferenceCount()
Increase the number of set reminders of this item about 1.


decReferenceCount

public void decReferenceCount()
Decrease the number of set reminders of this item about 1.


getMinutes

public int getMinutes()
Gets the reminder mintutes of this list item.

Returns:
The reminder mintutes of this list item.

setMinutes

public void setMinutes(int minutes)
Sets the minutes of this list item.

Parameters:
minutes - The minutes of this list item.

getProgram

public Program getProgram()
Gets the program of this list item.

Returns:
The program of this list item.

compareTo

public int compareTo(ReminderListItem other)
Specified by:
compareTo in interface Comparable<ReminderListItem>

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)