net.sf.borg.ui.popup
Class ReminderPopupManager

java.lang.Object
  extended by net.sf.borg.ui.popup.ReminderManager
      extended by net.sf.borg.ui.popup.ReminderPopupManager
All Implemented Interfaces:
Prefs.Listener, Model.Listener

public class ReminderPopupManager
extends ReminderManager

Manages the lifecycle of Reminder Popup windows.


Field Summary
 
Fields inherited from class net.sf.borg.ui.popup.ReminderManager
doPopupChk, singleton
 
Method Summary
 void addToUI(ReminderInstance instance)
          show a reminder
static ReminderManager getReference()
          Gets the singleton.
 void hideAll()
          Hide all popup windows
 void periodicUpdate()
          update any visible reminders as needed - i.e.
 void refresh()
          refresh the popup states depending on the state of the appointment model.
 void remove()
          stop the timer and remove all popups
 void showAll()
          show all popups in the list
 void update(Model.ChangeEvent event)
          Called to notify Listener when the Model is changed.
 
Methods inherited from class net.sf.borg.ui.popup.ReminderManager
checkPopups, getReminderManager, prefsChanged, shouldShowUntimedTodosNow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getReference

public static ReminderManager getReference()
Gets the singleton.

Returns:
the singleton

remove

public void remove()
stop the timer and remove all popups

Overrides:
remove in class ReminderManager

update

public void update(Model.ChangeEvent event)
Description copied from interface: Model.Listener
Called to notify Listener when the Model is changed.


refresh

public void refresh()
Description copied from class: ReminderManager
refresh the popup states depending on the state of the appointment model. In particular, clean up any popups that should no longer be shown because of model changes.

Specified by:
refresh in class ReminderManager

showAll

public void showAll()
show all popups in the list

Specified by:
showAll in class ReminderManager

hideAll

public void hideAll()
Hide all popup windows

Specified by:
hideAll in class ReminderManager

addToUI

public void addToUI(ReminderInstance instance)
Description copied from class: ReminderManager
show a reminder

Specified by:
addToUI in class ReminderManager
Parameters:
instance - the reminder instance

periodicUpdate

public void periodicUpdate()
Description copied from class: ReminderManager
update any visible reminders as needed - i.e. to catch changes due to the passage of time. This is NOT called for model changes.

Specified by:
periodicUpdate in class ReminderManager


Generated December 30 2011 by mbb using Apache Ant(TM) version 1.8.2 compiled on December 20 2010 and Java version 1.6.0_30 from Sun Microsystems Inc. on Linux i386 3.0.0-14-generic-pae