|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jSyncManager.API.Protocol.Util.StdApps.DateBookRecordEntry
A single entry record for a DateBookRecord.
Field Summary | |
---|---|
static byte |
ALARM_ADVANCE_DAYS
Alarm unit of Days (pre-appointment time decrement) |
static byte |
ALARM_ADVANCE_HOURS
Alarm unit of Hours (pre-appointment time decrement) |
static byte |
ALARM_ADVANCE_MINUTES
Alarm unit of Minutes (pre-appointment time decrement) |
static byte |
CLEAR_HAS_ALARM_INFO
A bitmap used to clear the "has alarm" flag. |
static byte |
CLEAR_HAS_DESCRIPTION
A bitmap used to clear the "has description" flag. |
static byte |
CLEAR_HAS_EXCEPTION_INFO
A bitmap used to clear the exception information flag. |
static byte |
CLEAR_HAS_NOTE
A bitmap used to clear the flag that this record has a note. |
static byte |
CLEAR_HAS_REPEAT_INFO
A bitmap used to clear the record repeat info. |
static byte |
CLEAR_WHEN_MODIFIED
A bitmap used to clear the date/time modification flag. |
static char |
DAY_MASK
A mask bitmap to mask the day in a PalmOS encoded date entry. |
static int |
DAY_ROTATE
A value for the amount to bit-rotate to query the day in a PalmOS-encoded date. |
static byte |
HAS_ALARM_INFO
A flag used to denote that this record has an alarm. |
static byte |
HAS_DESCRIPTION
A flag used to denote that this record hasa description. |
static byte |
HAS_EXCEPTION_INFO
A flag used to denote that this record has repeat exception info. |
static byte |
HAS_NOTE
A flag used to denote that this record contains a note. |
static byte |
HAS_REPEAT_INFO
A flag used to denote that this record contains repeating information. |
static java.util.GregorianCalendar |
MAXIMUM_DATE
The maximum date value the Palm can store. |
static char |
MONTH_MASK
A mask bitmap to mask the month in a PalmOS encoded date entry. |
static int |
MONTH_ROTATE
A value for the amount to bit-rotate to query the month in a PalmOS-encoded date. |
static byte |
NO_ALARM
Value used if there is no alarm. |
static byte |
NO_TIME
Value used if there is no time. |
protected static java.util.ResourceBundle |
rb
|
static byte |
REPEAT_TYPE_DAILY
Repeat Type is Daily |
static byte |
REPEAT_TYPE_MONTHLY_BY_DAY_OF_MONTH
Repeat Type is Monthly by Date |
static byte |
REPEAT_TYPE_MONTHLY_BY_DAY_OF_WEEK
Repeat Type is Monthly by Day of Month |
static char |
REPEAT_TYPE_NO_END_DATE
Repeat has no end date. |
static byte |
REPEAT_TYPE_NONE
No Repeat of appointment |
static byte |
REPEAT_TYPE_WEEKLY
Repeat Type is Weekly |
static byte |
REPEAT_TYPE_YEARLY
Repeat Type is yearly (annual) |
static byte |
WHEN_MODIFIED
A flag used to denote that the date/time of this record has been modified. |
static char |
YEAR_MASK
A mask bitmap to mask the year in a PalmOS encoded date entry. |
static int |
YEAR_ROTATE
A value for the amount to bit-rotate to query the year in a PalmOS-encoded date. |
Constructor Summary | |
---|---|
|
DateBookRecordEntry()
DateBookRecordEntry defauit constructor. |
protected |
DateBookRecordEntry(DateBookRecordEntry original)
Creates a new DateBookRecord entry that is a copy of the provided DateBookRecordEntry. |
Method Summary | |
---|---|
void |
addExceptionEntry(java.util.Calendar date)
Add a new Exception entry from the date given. |
void |
addExceptionEntry(char date)
Add a new Exception entry from the date given. |
DateBookRecordEntry |
calculateNextEntry()
This method will figure out the next entry if this is a repeating entry. |
static java.util.Calendar |
convertDateTime(byte hourByte,
byte minuteByte,
char date)
Utility method to convert a byte set into the Calendar date/time. |
byte |
getAlarmAdvance()
Getter for property alarmAdvance. |
java.util.Calendar |
getAlarmTime()
Get alarm time of appointment. |
byte |
getAlarmUnitType()
Getter for property alarmUnitType. |
byte |
getApptFlags()
Getter for property apptFlags. |
static byte[] |
getDateBytesFromCalendar(java.util.Calendar c)
Parse the Calendar and convert to a byte array of date information. |
java.util.Calendar |
getEndTime()
Get end time of the appointment. |
java.util.Calendar |
getExceptionEntry(int i)
Get the index indicated exception entry. |
int |
getExceptionEntryCount()
Get the number of exception entries for this record. |
java.util.Calendar |
getRepeatEndDate()
Getter for property repeatEndDate. |
byte |
getRepeatFrequency()
Getter for property repeatFrequency. |
byte |
getRepeatOn()
Getter for property repeatOn. |
byte |
getRepeatStartOfWeek()
Getter for property repeatStartOfWeek. |
byte |
getRepeatType()
Getter for property repeatType. |
java.util.Calendar |
getStartTime()
Get start time of the appointment. |
boolean |
hasAlarm()
Check if alarm is set. |
boolean |
hasAlarmSet()
Getter for property alarmSet. |
boolean |
hasDescription()
Getter for property hasDescription. |
boolean |
hasExceptionList()
Getter for Exception List Flag. |
boolean |
hasFlag(byte flag)
Check whether a given flag is set. |
boolean |
hasNote()
Getter for property hasNote. |
protected boolean |
isExceptionEntry(java.util.Calendar date)
This method checks to see if the specified Calendar object is an exception. |
boolean |
isRepeating()
Getter for property repeating. |
boolean |
isWhenInfoChanged()
Getter for property whenInfoChanged. |
void |
setAlarmAdvance(byte alarmAdvance)
Setter for property alarmAdvance. |
void |
setAlarmSet(boolean alarmSet)
Setter for property alarmSet. |
void |
setAlarmTime(java.util.Calendar newValue)
Set alarm time for this appointment. |
void |
setAlarmUnitType(byte alarmUnitType)
Setter for property alarmUnitType. |
void |
setApptFlags(byte apptFlags)
Setter for property apptFlags. |
void |
setEndTime(java.util.Calendar newValue)
Set the end time for this appointment. |
void |
setExceptionList(boolean flag)
Setter for property alarmSet. |
void |
setHasDescription(boolean hasDescription)
Setter for property hasDescription. |
void |
setHasNote(boolean hasNote)
Setter for property hasNote. |
void |
setRepeatEndDate(java.util.Calendar repeatEndDate)
Setter for property repeatEndDate. |
void |
setRepeatFrequency(byte repeatFrequency)
Setter for property repeatFrequency. |
void |
setRepeating(boolean repeating)
Setter for property repeating. |
void |
setRepeatOn(byte repeatOn)
Setter for property repeatOn. |
void |
setRepeatStartOfWeek(byte repeatStartOfWeek)
Setter for property repeatStartOfWeek. |
void |
setRepeatType(byte repeatType)
Setter for property repeatType. |
void |
setStartTime(java.util.Calendar newValue)
Set the start time for appointment. |
void |
setWhenInfoChanged(boolean whenInfoChanged)
Setter for property whenInfoChanged. |
java.lang.String |
toString()
Return a human-readable String representation of this record. |
Methods inherited from class java.lang.Object |
---|
|
Field Detail |
protected static java.util.ResourceBundle rb
public static final byte ALARM_ADVANCE_MINUTES
public static final byte ALARM_ADVANCE_HOURS
public static final byte ALARM_ADVANCE_DAYS
public static final byte NO_TIME
public static final byte NO_ALARM
public static final byte REPEAT_TYPE_NONE
public static final byte REPEAT_TYPE_DAILY
public static final byte REPEAT_TYPE_WEEKLY
public static final byte REPEAT_TYPE_MONTHLY_BY_DAY_OF_WEEK
public static final byte REPEAT_TYPE_MONTHLY_BY_DAY_OF_MONTH
public static final byte REPEAT_TYPE_YEARLY
public static final char REPEAT_TYPE_NO_END_DATE
public static final byte WHEN_MODIFIED
public static final byte HAS_ALARM_INFO
public static final byte HAS_REPEAT_INFO
public static final byte HAS_NOTE
public static final byte HAS_EXCEPTION_INFO
public static final byte HAS_DESCRIPTION
public static final byte CLEAR_WHEN_MODIFIED
public static final byte CLEAR_HAS_ALARM_INFO
public static final byte CLEAR_HAS_REPEAT_INFO
public static final byte CLEAR_HAS_NOTE
public static final byte CLEAR_HAS_EXCEPTION_INFO
public static final byte CLEAR_HAS_DESCRIPTION
public static final char YEAR_MASK
public static final char MONTH_MASK
public static final char DAY_MASK
public static final int YEAR_ROTATE
public static final int MONTH_ROTATE
public static final int DAY_ROTATE
public static final java.util.GregorianCalendar MAXIMUM_DATE
Constructor Detail |
public DateBookRecordEntry()
protected DateBookRecordEntry(DateBookRecordEntry original)
original
- DateBookRecordEntry original version.Method Detail |
public boolean hasNote()
public void setHasNote(boolean hasNote)
hasNote
- New value of property hasNote.public boolean hasDescription()
public void setHasDescription(boolean hasDescription)
hasDescription
- New value of property hasDescription.public boolean isWhenInfoChanged()
public void setWhenInfoChanged(boolean whenInfoChanged)
whenInfoChanged
- New value of property whenInfoChanged.public boolean isRepeating()
public void setRepeating(boolean repeating)
repeating
- New value of property repeating.public boolean hasAlarmSet()
public void setAlarmSet(boolean alarmSet)
alarmSet
- New value of property alarmSet.public boolean hasExceptionList()
public void setExceptionList(boolean flag)
alarmSet
- New value of property alarmSet.public java.util.Calendar getAlarmTime()
public java.util.Calendar getEndTime()
public java.util.Calendar getStartTime()
public boolean hasAlarm()
public void setAlarmTime(java.util.Calendar newValue)
newValue
- the time for this appointment.public void setEndTime(java.util.Calendar newValue)
newValue
- the end time for this appointment.public void setStartTime(java.util.Calendar newValue)
newValue
- the start time for appointment.public byte getAlarmUnitType()
public void setAlarmUnitType(byte alarmUnitType)
alarmUnitType
- New value of property alarmUnitType.public byte getApptFlags()
public void setApptFlags(byte apptFlags)
apptFlags
- New value of property apptFlags.public java.util.Calendar getRepeatEndDate()
public void setRepeatEndDate(java.util.Calendar repeatEndDate)
repeatEndDate
- New value of property repeatEndDate.public byte getRepeatFrequency()
public void setRepeatFrequency(byte repeatFrequency)
repeatFrequency
- New value of property repeatFrequency.public byte getRepeatOn()
public void setRepeatOn(byte repeatOn)
repeatOn
- New value of property repeatOn.public byte getRepeatStartOfWeek()
public void setRepeatStartOfWeek(byte repeatStartOfWeek)
repeatStartOfWeek
- New value of property repeatStartOfWeek.public byte getRepeatType()
public void setRepeatType(byte repeatType)
repeatType
- New value of property repeatType.public byte getAlarmAdvance()
public void setAlarmAdvance(byte alarmAdvance)
alarmAdvance
- New value of property alarmAdvance.public boolean hasFlag(byte flag)
flag
- the flag to test.public static java.util.Calendar convertDateTime(byte hourByte, byte minuteByte, char date)
hourByte
- byte Hour value.minuteByte
- byte Minute value.date
- char Date value.public DateBookRecordEntry calculateNextEntry()
protected boolean isExceptionEntry(java.util.Calendar date)
date
- the Calendar object to test.public void addExceptionEntry(java.util.Calendar date)
date
- Calendar date of exception entry.public void addExceptionEntry(char date)
date
- char date value of exception entry.public java.util.Calendar getExceptionEntry(int i)
i
- int index to the exception entry.public int getExceptionEntryCount()
public java.lang.String toString()
toString
in class java.lang.Object
public static byte[] getDateBytesFromCalendar(java.util.Calendar c)
c
- Calendar value to convert.
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |