TV-Browser 2.7.5 API

tvbrowser.extras.reminderplugin
Class ReminderFrame

java.lang.Object
  extended by tvbrowser.extras.reminderplugin.ReminderFrame
All Implemented Interfaces:
EventListener, ChangeListener, WindowClosingIf

public class ReminderFrame
extends Object
implements WindowClosingIf, ChangeListener

TV-Browser

Author:
Martin Oberhauser

Field Summary
static String[] REMIND_MSG_ARR
          The UI texts for the choosable options how long before a program start the reminder should appear.
static int[] REMIND_VALUE_ARR
          The values for the choosable options how long before a program start the reminder should appear.
 
Constructor Summary
ReminderFrame(ReminderList list, ReminderListItem item, int autoCloseSecs)
          Creates a new instance of ReminderFrame.
 
Method Summary
 void close()
          The closing method.
static int getMinutesForValue(int index)
           
 JRootPane getRootPane()
           
static String getStringForMinutes(int minutes)
           
static int getValueForMinutes(int minutes)
           
 void stateChanged(ChangeEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMIND_MSG_ARR

public static final String[] REMIND_MSG_ARR
The UI texts for the choosable options how long before a program start the reminder should appear.


REMIND_VALUE_ARR

public static final int[] REMIND_VALUE_ARR
The values for the choosable options how long before a program start the reminder should appear.

Constructor Detail

ReminderFrame

public ReminderFrame(ReminderList list,
                     ReminderListItem item,
                     int autoCloseSecs)
Creates a new instance of ReminderFrame.

Parameters:
list - The list of all reminders.
item - The reminder to show.
autoCloseSecs - The number seconds to wait before auto-closing the window. -1 disables auto-closing.
Method Detail

close

public void close()
Description copied from interface: WindowClosingIf
The closing method.

Specified by:
close in interface WindowClosingIf

getRootPane

public JRootPane getRootPane()
Specified by:
getRootPane in interface WindowClosingIf
Returns:
The RootPane to register the Escape key action with.

getStringForMinutes

public static String getStringForMinutes(int minutes)

getValueForMinutes

public static int getValueForMinutes(int minutes)

getMinutesForValue

public static int getMinutesForValue(int index)

stateChanged

public void stateChanged(ChangeEvent e)
Specified by:
stateChanged in interface ChangeListener

TV-Browser 2.7.5 API

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