|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.borg.ui.popup.ReminderInstance
public abstract 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 display the reminder.
| Constructor Summary | |
|---|---|
ReminderInstance()
|
|
| Method Summary | |
|---|---|
String |
calculateToGoMessage()
calculate the to go message for a reminder instance |
abstract void |
do_todo(boolean delete)
if the reminder instance is a todo, then mark it as done/complete |
int |
dueForPopup()
determine if a reminder is ready to be popped up and return the number of the reminder that is ready |
abstract boolean |
equals(Object obj)
|
abstract int |
getCurrentReminder()
get the index of the active reminder for this instance - i.e. |
Date |
getInstanceTime()
get the instance time |
char[] |
getRemindersShown()
|
abstract String |
getText()
get the text for the reminder |
abstract int |
hashCode()
|
boolean |
isHidden()
|
abstract boolean |
isNote()
return true if the reminder is a note (is untimed) |
abstract boolean |
isTodo()
return true if the reminder is a todo - either an appointment todo or another type of todo, such as a task |
void |
markAsShown(int reminderNumber)
mark a reminder time as shown |
int |
minutesToGo()
|
abstract boolean |
reloadAndCheckForChanges()
reload the model entity from the db and check if it has changed. |
void |
setHidden(boolean hidden)
set the hidden flag |
void |
setInstanceTime(Date instanceTime)
|
void |
setRemindersShown(char[] remindersShown)
|
void |
setShown(boolean s)
Sets the shown flag. |
abstract 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()
| Method Detail |
|---|
public abstract void do_todo(boolean delete)
public final int dueForPopup()
public abstract boolean equals(Object obj)
equals in class Objectpublic abstract int getCurrentReminder()
public final Date getInstanceTime()
public abstract String getText()
public abstract int hashCode()
hashCode in class Objectpublic final boolean isHidden()
public abstract boolean isNote()
public abstract boolean isTodo()
public final void markAsShown(int reminderNumber)
reminderNumber - the reminder time indexpublic abstract boolean reloadAndCheckForChanges()
public final void setHidden(boolean hidden)
public final void setShown(boolean s)
s - was this popup ever shownpublic abstract boolean shouldBeShown()
public final boolean wasEverShown()
public final void setInstanceTime(Date instanceTime)
public final void setRemindersShown(char[] remindersShown)
public final char[] getRemindersShown()
public String calculateToGoMessage()
public int minutesToGo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||