A single entry record for a DateBookRecord.
ALARM_ADVANCE_DAYS
public static final byte ALARM_ADVANCE_DAYS
Alarm unit of Days (pre-appointment time decrement)
ALARM_ADVANCE_HOURS
public static final byte ALARM_ADVANCE_HOURS
Alarm unit of Hours (pre-appointment time decrement)
ALARM_ADVANCE_MINUTES
public static final byte ALARM_ADVANCE_MINUTES
Alarm unit of Minutes (pre-appointment time decrement)
CLEAR_HAS_ALARM_INFO
public static final byte CLEAR_HAS_ALARM_INFO
A bitmap used to clear the "has alarm" flag.
CLEAR_HAS_DESCRIPTION
public static final byte CLEAR_HAS_DESCRIPTION
A bitmap used to clear the "has description" flag.
CLEAR_HAS_EXCEPTION_INFO
public static final byte CLEAR_HAS_EXCEPTION_INFO
A bitmap used to clear the exception information flag.
CLEAR_HAS_NOTE
public static final byte CLEAR_HAS_NOTE
A bitmap used to clear the flag that this record has a note.
CLEAR_HAS_REPEAT_INFO
public static final byte CLEAR_HAS_REPEAT_INFO
A bitmap used to clear the record repeat info.
CLEAR_WHEN_MODIFIED
public static final byte CLEAR_WHEN_MODIFIED
A bitmap used to clear the date/time modification flag.
DAY_MASK
public static final char DAY_MASK
A mask bitmap to mask the day in a PalmOS encoded date entry.
DAY_ROTATE
public static final int DAY_ROTATE
A value for the amount to bit-rotate to query the day in a PalmOS-encoded date.
HAS_ALARM_INFO
public static final byte HAS_ALARM_INFO
A flag used to denote that this record has an alarm.
HAS_DESCRIPTION
public static final byte HAS_DESCRIPTION
A flag used to denote that this record hasa description.
HAS_EXCEPTION_INFO
public static final byte HAS_EXCEPTION_INFO
A flag used to denote that this record has repeat exception info.
Exception info is used to denate that there are certain dates where a repeating
record does not occur.
HAS_NOTE
public static final byte HAS_NOTE
A flag used to denote that this record contains a note.
HAS_REPEAT_INFO
public static final byte HAS_REPEAT_INFO
A flag used to denote that this record contains repeating information.
MAXIMUM_DATE
public static final GregorianCalendar MAXIMUM_DATE
The maximum date value the Palm can store.
This entry is used for repeating entries that never end.
We'll set this to January 1st, 2032 (one day past the maximum value).
MONTH_MASK
public static final char MONTH_MASK
A mask bitmap to mask the month in a PalmOS encoded date entry.
MONTH_ROTATE
public static final int MONTH_ROTATE
A value for the amount to bit-rotate to query the month in a PalmOS-encoded date.
NO_ALARM
public static final byte NO_ALARM
Value used if there is no alarm.
NO_TIME
public static final byte NO_TIME
Value used if there is no time.
REPEAT_TYPE_DAILY
public static final byte REPEAT_TYPE_DAILY
Repeat Type is Daily
REPEAT_TYPE_MONTHLY_BY_DAY_OF_MONTH
public static final byte REPEAT_TYPE_MONTHLY_BY_DAY_OF_MONTH
Repeat Type is Monthly by Date
REPEAT_TYPE_MONTHLY_BY_DAY_OF_WEEK
public static final byte REPEAT_TYPE_MONTHLY_BY_DAY_OF_WEEK
Repeat Type is Monthly by Day of Month
REPEAT_TYPE_NONE
public static final byte REPEAT_TYPE_NONE
No Repeat of appointment
REPEAT_TYPE_NO_END_DATE
public static final char REPEAT_TYPE_NO_END_DATE
Repeat has no end date.
REPEAT_TYPE_WEEKLY
public static final byte REPEAT_TYPE_WEEKLY
Repeat Type is Weekly
REPEAT_TYPE_YEARLY
public static final byte REPEAT_TYPE_YEARLY
Repeat Type is yearly (annual)
WHEN_MODIFIED
public static final byte WHEN_MODIFIED
A flag used to denote that the date/time of this record has been modified.
YEAR_MASK
public static final char YEAR_MASK
A mask bitmap to mask the year in a PalmOS encoded date entry.
YEAR_ROTATE
public static final int YEAR_ROTATE
A value for the amount to bit-rotate to query the year in a PalmOS-encoded date.
rb
protected static ResourceBundle rb
addExceptionEntry
public void addExceptionEntry(Calendar date)
Add a new Exception entry from the date given.
date - Calendar date of exception entry.
addExceptionEntry
public void addExceptionEntry(char date)
Add a new Exception entry from the date given.
date - char date value of exception entry.
calculateNextEntry
public DateBookRecordEntry calculateNextEntry()
This method will figure out the next entry if this is a repeating entry.
If this is not a repeating entry, or if there are no further entries,
this method will return null.
- a Calendar object containing the next entry.
convertDateTime
public static Calendar convertDateTime(byte hourByte,
byte minuteByte,
char date)Utility method to convert a byte set into the Calendar date/time.
hourByte - byte Hour value.minuteByte - byte Minute value.date - char Date value.
- the Calendar object representing the specified date/time information.
getAlarmAdvance
public byte getAlarmAdvance()
Getter for property alarmAdvance.
- Value of property alarmAdvance.
getAlarmTime
public Calendar getAlarmTime()
Get alarm time of appointment.
- the alarm time of appointment, or null if there is no alarm.
getAlarmUnitType
public byte getAlarmUnitType()
Getter for property alarmUnitType.
- Value of property alarmUnitType.
getApptFlags
public byte getApptFlags()
Getter for property apptFlags.
- Value of property apptFlags.
getDateBytesFromCalendar
public static byte[] getDateBytesFromCalendar(Calendar c)
Parse the Calendar and convert to a byte array of date information.
c - Calendar value to convert.
- a byte array of the date value.
getEndTime
public Calendar getEndTime()
Get end time of the appointment.
- the end time of the appointment.
getExceptionEntry
public Calendar getExceptionEntry(int i)
Get the index indicated exception entry.
i - int index to the exception entry.
- the exception entry at the specified index.
getExceptionEntryCount
public int getExceptionEntryCount()
Get the number of exception entries for this record.
- The number of exception entries in this record.
getRepeatEndDate
public Calendar getRepeatEndDate()
Getter for property repeatEndDate.
- Value of property repeatEndDate.
getRepeatFrequency
public byte getRepeatFrequency()
Getter for property repeatFrequency.
- Value of property repeatFrequency.
getRepeatOn
public byte getRepeatOn()
Getter for property repeatOn.
- Value of property repeatOn.
getRepeatStartOfWeek
public byte getRepeatStartOfWeek()
Getter for property repeatStartOfWeek.
- Value of property repeatStartOfWeek.
getRepeatType
public byte getRepeatType()
Getter for property repeatType.
- Value of property repeatType.
getStartTime
public Calendar getStartTime()
Get start time of the appointment.
- the start time of the appointment.
hasAlarm
public boolean hasAlarm()
Check if alarm is set.
- true if the alarm is set, false otherwise.
hasAlarmSet
public boolean hasAlarmSet()
Getter for property alarmSet.
- Value of property alarmSet.
hasDescription
public boolean hasDescription()
Getter for property hasDescription.
- Value of property hasDescription.
hasExceptionList
public boolean hasExceptionList()
Getter for Exception List Flag.
- Value of property exceptionList.
hasFlag
public boolean hasFlag(byte flag)
Check whether a given flag is set.
- true if the flag is set, false otherwise.
hasNote
public boolean hasNote()
Getter for property hasNote.
- Value of property hasNote.
isExceptionEntry
protected boolean isExceptionEntry(Calendar date)
This method checks to see if the specified Calendar object is an exception.
date - the Calendar object to test.
- true if this entry is in the exception list, false otherwise.
isRepeating
public boolean isRepeating()
Getter for property repeating.
- Value of property repeating.
isWhenInfoChanged
public boolean isWhenInfoChanged()
Getter for property whenInfoChanged.
- Value of property whenInfoChanged.
setAlarmAdvance
public void setAlarmAdvance(byte alarmAdvance)
Setter for property alarmAdvance.
alarmAdvance - New value of property alarmAdvance.
setAlarmSet
public void setAlarmSet(boolean alarmSet)
Setter for property alarmSet.
alarmSet - New value of property alarmSet.
setAlarmTime
public void setAlarmTime(Calendar newValue)
Set alarm time for this appointment.
newValue - the time for this appointment.
setAlarmUnitType
public void setAlarmUnitType(byte alarmUnitType)
Setter for property alarmUnitType.
alarmUnitType - New value of property alarmUnitType.
setApptFlags
public void setApptFlags(byte apptFlags)
Setter for property apptFlags.
apptFlags - New value of property apptFlags.
setEndTime
public void setEndTime(Calendar newValue)
Set the end time for this appointment.
newValue - the end time for this appointment.
setExceptionList
public void setExceptionList(boolean flag)
Setter for property alarmSet.
flag - New value of property alarmSet.
setHasDescription
public void setHasDescription(boolean hasDescription)
Setter for property hasDescription.
hasDescription - New value of property hasDescription.
setHasNote
public void setHasNote(boolean hasNote)
Setter for property hasNote.
hasNote - New value of property hasNote.
setRepeatEndDate
public void setRepeatEndDate(Calendar repeatEndDate)
Setter for property repeatEndDate.
repeatEndDate - New value of property repeatEndDate.
setRepeatFrequency
public void setRepeatFrequency(byte repeatFrequency)
Setter for property repeatFrequency.
repeatFrequency - New value of property repeatFrequency.
setRepeatOn
public void setRepeatOn(byte repeatOn)
Setter for property repeatOn.
repeatOn - New value of property repeatOn.
setRepeatStartOfWeek
public void setRepeatStartOfWeek(byte repeatStartOfWeek)
Setter for property repeatStartOfWeek.
repeatStartOfWeek - New value of property repeatStartOfWeek.
setRepeatType
public void setRepeatType(byte repeatType)
Setter for property repeatType.
repeatType - New value of property repeatType.
setRepeating
public void setRepeating(boolean repeating)
Setter for property repeating.
repeating - New value of property repeating.
setStartTime
public void setStartTime(Calendar newValue)
Set the start time for appointment.
newValue - the start time for appointment.
setWhenInfoChanged
public void setWhenInfoChanged(boolean whenInfoChanged)
Setter for property whenInfoChanged.
whenInfoChanged - New value of property whenInfoChanged.
toString
public String toString()
Return a human-readable String representation of this record.
- A human-readable String representation of this record.