|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.borg.ui.popup.ReminderInstance
class ReminderInstance
holds an instance of a reminder message. Keeps track of which reminder times have been shown for this reminder message. Is not aware of the actual UI used to dislay the reminder.
Constructor Summary | |
---|---|
ReminderInstance(Appointment appt,
Date instanceTime)
constructor |
Method Summary | |
---|---|
int |
dueForPopup()
determine if a reminder is ready to be popped up and return the number of the reminder that is ready |
boolean |
equals(Object obj)
|
Appointment |
getAppt()
get appointment |
int |
getCurrentReminder()
get the index of the active reminder for this instance - i.e. |
Date |
getInstanceTime()
get the instance time |
int |
hashCode()
|
boolean |
isHidden()
|
void |
markAsShown(int reminderNumber)
mark a reminder time as shown |
void |
setAppt(Appointment appt)
|
void |
setHidden(boolean hidden)
set the hidden flag |
void |
setShown(boolean s)
Sets the shown flag. |
boolean |
shouldBeShown()
determine if an appointment popup should be shown for an appointment that doesn't yet have a popup associated with it |
boolean |
wasEverShown()
get the shown flag. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReminderInstance(Appointment appt, Date instanceTime)
appt
- the appointmentinstanceTime
- the instance time.Method Detail |
---|
public int dueForPopup()
public boolean equals(Object obj)
equals
in class Object
public Appointment getAppt()
public int getCurrentReminder()
public Date getInstanceTime()
public int hashCode()
hashCode
in class Object
public boolean isHidden()
public void markAsShown(int reminderNumber)
reminderNumber
- the reminder time indexpublic void setAppt(Appointment appt)
public void setHidden(boolean hidden)
public void setShown(boolean s)
s
- was this popup ever shownpublic boolean shouldBeShown()
public boolean wasEverShown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |