public class Reminder extends MoneydanceSyncableItem
Modifier and Type | Class and Description |
---|---|
static class |
Reminder.Type |
Modifier and Type | Field and Description |
---|---|
static int |
BASIC_REMINDER_TYPE |
static int |
LAST_DAY_OF_MONTH |
static int |
MONTHLY_EVERY |
static int |
MONTHLY_EVERY_FOURTH |
static int |
MONTHLY_EVERY_OTHER |
static int |
MONTHLY_EVERY_SIXTH |
static int |
MONTHLY_EVERY_THIRD |
static int |
REPEAT_BY_DAY_OF_MONTH |
static int |
REPEAT_BY_DAY_OF_WEEK |
static int |
REPEAT_BY_EVERY_YEAR |
static int |
REPEAT_BY_NDAYS |
static int |
REPEAT_BY_NONE |
static java.lang.String |
SYNCABLE_TYPE_VALUE |
static int |
TXN_REMINDER_TYPE |
static int |
WEEKLY_EVERY |
static int |
WEEKLY_EVERY_FIFTH |
static int |
WEEKLY_EVERY_FIRST |
static int |
WEEKLY_EVERY_FOURTH |
static int |
WEEKLY_EVERY_LAST |
static int |
WEEKLY_EVERY_SECOND |
static int |
WEEKLY_EVERY_THIRD |
book, info
Constructor and Description |
---|
Reminder(AccountBook book) |
Modifier and Type | Method and Description |
---|---|
int |
getAutoCommitDays()
Return the number of days prior to this transactions scheduled date
that we should automatically add it to the transaction set.
|
int |
getDateAcknowledgedInt()
Get the last date that this reminder was acknowledged/accepted.
|
java.lang.String |
getDescription() |
long |
getId() |
int |
getInitialDateInt()
Get the first date that the reminder will occur.
|
int |
getLastDateInt()
Set a date after which this reminder should no longer occur.
|
java.lang.String |
getMemo() |
int |
getNextOccurance(int maximumDate)
Calculates the next date on which the reminder will occur (ie that is greater
than the acknowledgement date) and that is equal to or below the given date.
|
java.util.List<java.util.Date> |
getPastDueDates(java.util.Calendar today)
Return a Vector containing a list off Date objects
for which this Reminder has been scheduled but not
yet acknowledged.
|
Reminder.Type |
getReminderType() |
int |
getRepeatDaily() |
int[] |
getRepeatMonthly() |
int |
getRepeatMonthlyModifier() |
int[] |
getRepeatWeeklyDays() |
int |
getRepeatWeeklyModifier() |
boolean |
getRepeatYearly() |
java.lang.String |
getSyncItemType()
Subclasses should override this to return a static string identifying their type of object
|
com.infinitekind.tiksync.SyncRecord |
getTags() |
ParentTxn |
getTransaction() |
boolean |
hasBeenAcknowledged(java.util.Date asOfDate)
Deprecated.
use hasBeenAcknowledgedInt(int) instead
|
boolean |
hasBeenAcknowledgedInt(int asOfDate)
Returns true if this reminder has been acknowledged as of the given date.
|
boolean |
isLoanReminder() |
protected void |
itemWasUpdated()
This is called after an item is updated by calling itemWasUpdated(SyncRecord).
|
protected void |
itemWillSync()
This is called just before an item will be stored and/or synced when itemWillSync(SyncRecord)
is called.
|
boolean |
occursOnDate(java.util.Calendar cal) |
void |
setAcknowledgedInt(int date)
Set the last date that this reminder was acknowledged/accepted.
|
void |
setAutoCommitDays(int autoCommitDays)
Set the number of days prior to this transactions scheduled date
that we should automatically add it to the transaction set.
|
void |
setDescription(java.lang.String description) |
void |
setId(long id) |
void |
setInitialDateInt(int date)
Set the first date that the reminder will occur.
|
void |
setLastDateInt(int date)
Set a date after which this reminder should no longer occur.
|
void |
setLoan(boolean loan) |
void |
setMemo(java.lang.String memo) |
void |
setReminderType(Reminder.Type newReminderType) |
void |
setRepeatDaily(int everyNDays) |
void |
setRepeatMonthly(int daysOfMonthModifier,
int[] daysOfMonth) |
void |
setRepeatWeekly(int daysOfWeekModifier,
int[] daysOfWeek) |
void |
setRepeatYearly(boolean yearly) |
void |
setTransaction(ParentTxn ptxn) |
java.lang.String |
toString() |
addParameters, addTags, autoSyncsChanges, decodeKeywordList, deleteItem, doesParameterExist, duplicate, encodeKeywordList, equals, getAccountParameter, getAddress, getAddressParameter, getBook, getBooleanParameter, getCurrencyParameter, getDoubleParameter, getIntParameter, getKeywords, getLongParameter, getParameter, getParameter, getParameterCount, getParameterKeys, getPreference, getPreferenceBoolean, getPreferenceDouble, getPreferenceInt, getPreferenceIntArray, getPreferenceLong, getPreferenceStringList, getPreferenceSublist, getPreferenceSubset, getSyncInfo, getSyncTimestamp, getUUID, hashCode, hasKeywordSubstring, initialize, isInEditingMode, isSyncable, itemWasUpdated, itemWillSync, makeSyncableItem, removeParameter, setAccountParameter, setAddress, setAddressParameter, setCurrencyParameter, setDirty, setEditingMode, setKeywords, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameterNoNotify, setPreference, setPreference, setPreference, syncItem
public static final java.lang.String SYNCABLE_TYPE_VALUE
public static final int TXN_REMINDER_TYPE
public static final int BASIC_REMINDER_TYPE
public static final int REPEAT_BY_NONE
public static final int REPEAT_BY_DAY_OF_WEEK
public static final int REPEAT_BY_DAY_OF_MONTH
public static final int REPEAT_BY_NDAYS
public static final int REPEAT_BY_EVERY_YEAR
public static final int MONTHLY_EVERY
public static final int MONTHLY_EVERY_OTHER
public static final int MONTHLY_EVERY_THIRD
public static final int MONTHLY_EVERY_FOURTH
public static final int MONTHLY_EVERY_SIXTH
public static final int WEEKLY_EVERY
public static final int WEEKLY_EVERY_FIRST
public static final int WEEKLY_EVERY_SECOND
public static final int WEEKLY_EVERY_THIRD
public static final int WEEKLY_EVERY_FOURTH
public static final int WEEKLY_EVERY_FIFTH
public static final int WEEKLY_EVERY_LAST
public static final int LAST_DAY_OF_MONTH
public Reminder(AccountBook book)
protected void itemWasUpdated()
MoneydanceSyncableItem
itemWasUpdated
in class MoneydanceSyncableItem
protected void itemWillSync()
MoneydanceSyncableItem
itemWillSync
in class MoneydanceSyncableItem
public final java.lang.String getSyncItemType()
MoneydanceSyncableItem
getSyncItemType
in interface com.infinitekind.tiksync.SyncableItem
getSyncItemType
in class MoneydanceSyncableItem
public Reminder.Type getReminderType()
public void setReminderType(Reminder.Type newReminderType)
public long getId()
public void setId(long id)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.String getMemo()
public void setMemo(java.lang.String memo)
public int getInitialDateInt()
public void setInitialDateInt(int date)
public int getLastDateInt()
public void setLastDateInt(int date)
public int getDateAcknowledgedInt()
public void setAcknowledgedInt(int date)
public int getRepeatWeeklyModifier()
public int[] getRepeatWeeklyDays()
public void setRepeatWeekly(int daysOfWeekModifier, int[] daysOfWeek)
public int getRepeatMonthlyModifier()
public int[] getRepeatMonthly()
public void setRepeatMonthly(int daysOfMonthModifier, int[] daysOfMonth)
public int getRepeatDaily()
public void setRepeatDaily(int everyNDays)
public boolean getRepeatYearly()
public void setRepeatYearly(boolean yearly)
public ParentTxn getTransaction()
public void setTransaction(ParentTxn ptxn)
public int getAutoCommitDays()
public void setAutoCommitDays(int autoCommitDays)
public boolean isLoanReminder()
public void setLoan(boolean loan)
public java.util.List<java.util.Date> getPastDueDates(java.util.Calendar today)
public boolean hasBeenAcknowledged(java.util.Date asOfDate)
public boolean hasBeenAcknowledgedInt(int asOfDate)
public int getNextOccurance(int maximumDate)
public boolean occursOnDate(java.util.Calendar cal)
public com.infinitekind.tiksync.SyncRecord getTags()
public java.lang.String toString()
toString
in class java.lang.Object