|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.calendar.CalendarEntry
public class CalendarEntry
Calendar Entry class provides access to data in events provided in the calendar.
| Field Summary | |
|---|---|
static String |
CLASS_CONFIDENTIAL
For entries that are classified confidential. |
static String |
CLASS_PRIVATE
For entries that are classified private. |
static String |
CLASS_PUBLIC
For entries that are classified public. |
static int |
REOCCURENCE_DAILY
this entry recurs daily |
static int |
REOCCURENCE_MONTHLY
this entry recurs monthly |
static int |
REOCCURENCE_NONE
this entry does not recur at all |
static int |
REOCCURENCE_WEEKLY
this entry recurs weekly |
static int |
REOCCURENCE_YEARLY
this entry recurs yearly |
| Constructor Summary | |
|---|---|
CalendarEntry()
Constructor for CalendarEntry |
|
CalendarEntry(CalendarEntry original)
Creates a new entry based on the specified one |
|
CalendarEntry(String summary,
CalendarCategory category,
int year,
int month,
int day)
|
|
CalendarEntry(String summary,
CalendarCategory category,
int year,
int month,
int day,
int reoccurence)
|
|
CalendarEntry(String summary,
CalendarCategory category,
int year,
int month,
int day,
String description)
|
|
CalendarEntry(String summary,
CalendarCategory category,
int year,
int month,
int day,
String description,
int reoccurence)
|
|
CalendarEntry(String summary,
CalendarCategory category,
TimePoint start)
|
|
CalendarEntry(String summary,
CalendarCategory category,
TimePoint start,
int reoccurence)
|
|
CalendarEntry(String summary,
CalendarCategory category,
TimePoint start,
String description)
|
|
CalendarEntry(String summary,
CalendarCategory category,
TimePoint start,
String description,
int reoccurence)
|
|
CalendarEntry(TimePoint startDate,
String description)
Creates a new CalendarEntry |
|
| Method Summary | |
|---|---|
CalendarEntry |
clone(TimePoint start)
Clones this calendar entry for the specified date. |
int |
getAlarm()
|
CalendarAlarm |
getCalendarAlarm()
|
CalendarCategory |
getCategory()
|
CalendarEntry[] |
getChildren()
Gets the children of a repeating entry. |
String |
getClassType()
Retrieves the class of this entry. |
String |
getDescription()
|
int |
getDurationInMinutes()
|
TimePoint |
getEndDate()
|
Object |
getField(String name)
Retrieves another field that is stored within this CalendarEntry |
long |
getGuid()
Generates a global unique ID for this entry. |
String |
getId()
|
String |
getLocation()
|
String |
getNotes()
|
String |
getOrganizer()
|
CalendarEntry |
getParent()
Retrieves access to the original calendar entry. |
EventRepeatRule |
getRepeat()
Retrieves the event repeat rule for this entry |
int |
getSequence()
|
TimePoint |
getStartDate()
|
String |
getStatus()
|
String |
getSummary()
|
String |
getSummary(TimePoint calendarTimePoint)
|
CalendarTextResolver |
getTextResolver()
Retrieves the used text resolver. |
TimeZone |
getTimeZone()
|
int |
getType()
Retrieves the type of this entry. |
String |
getUserId()
|
int |
getYearsSinceStart(TimePoint timePoint)
Retrieves the difference in years between the start date of this entry and the specified time point |
boolean |
isAllday()
|
boolean |
matches(TimePeriod period)
Checks if this entry either starts or ends in the given time period |
void |
read(DataInputStream in)
Restores the internal instance fields from the given input stream. |
void |
setAlarm(int alarm)
|
void |
setAllday(boolean isAllday)
setter method for isAllday of calendar entry |
void |
setCalendarAlarm(CalendarAlarm calendarAlarm)
setter method for calendarAlarm |
void |
setCategory(CalendarCategory category)
setter method for CalendarCategory |
void |
setChildren(CalendarEntryList entryList)
Sets the children of a repeating entry. |
void |
setClassType(String classType)
Sets the class of this entry |
void |
setDescription(String description)
setter method for event description |
void |
setDurationInMinutes(int durationInMinutes)
setter method for duration in minutes |
void |
setEndDate(Date date)
|
void |
setEndDate(TimePoint endDate)
setter method for end date |
void |
setField(String name,
Object value)
Adds an arbitrary field value to this entry |
void |
setId(String id)
setter method for id |
void |
setLocation(String location)
setter method for location |
void |
setNotes(String notes)
|
void |
setOrganizer(String organizer)
setter method for organizer |
void |
setReoccurence(int reoccurence)
Specifies a simple reoccurence for this entry. |
void |
setRepeat(EventRepeatRule eventRepeatRule)
Sets a repeat rule for this entry. |
void |
setSequence(int sequence)
setter method for sequence of calendar entry |
void |
setStartDate(Date date)
|
void |
setStartDate(TimePoint startDate)
setter method for start date |
void |
setStartDate(TimePoint startDate,
int durationInMinutes)
setter method to set starting date and duration in minutes for calendar entry |
void |
setStatus(String status)
setter method for status |
void |
setSummary(String summary)
setter method for summary of calendar entry |
void |
setTextResolver(CalendarTextResolver resolver)
Sets a text resolver that is used for resolving the summary and description of this CalendarEntry. |
void |
setTimeZone(TimeZone timeZone)
setter method for local time zone |
void |
setType(int type)
Specifies a type of this entry. |
void |
setUserId(String userId)
|
void |
write(DataOutputStream out)
Stores the internal instance fields to the output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int REOCCURENCE_NONE
public static final int REOCCURENCE_DAILY
public static final int REOCCURENCE_WEEKLY
public static final int REOCCURENCE_MONTHLY
public static final int REOCCURENCE_YEARLY
public static final String CLASS_PUBLIC
public static final String CLASS_PRIVATE
public static final String CLASS_CONFIDENTIAL
| Constructor Detail |
|---|
public CalendarEntry()
public CalendarEntry(String summary,
CalendarCategory category,
int year,
int month,
int day)
public CalendarEntry(String summary,
CalendarCategory category,
int year,
int month,
int day,
int reoccurence)
public CalendarEntry(String summary,
CalendarCategory category,
int year,
int month,
int day,
String description)
public CalendarEntry(String summary,
CalendarCategory category,
int year,
int month,
int day,
String description,
int reoccurence)
public CalendarEntry(String summary,
CalendarCategory category,
TimePoint start)
public CalendarEntry(String summary,
CalendarCategory category,
TimePoint start,
int reoccurence)
public CalendarEntry(String summary,
CalendarCategory category,
TimePoint start,
String description)
public CalendarEntry(String summary,
CalendarCategory category,
TimePoint start,
String description,
int reoccurence)
public CalendarEntry(TimePoint startDate,
String description)
startDate - description - public CalendarEntry(CalendarEntry original)
original - the original entry of which all relevant settings are copied| Method Detail |
|---|
public CalendarAlarm getCalendarAlarm()
public CalendarCategory getCategory()
public String getDescription()
public TimePoint getStartDate()
public TimePoint getEndDate()
public TimeZone getTimeZone()
public int getDurationInMinutes()
public String getOrganizer()
public String getLocation()
public int getSequence()
public String getStatus()
public int getType()
public void setType(int type)
type - the implementation specific typepublic boolean isAllday()
public String getId()
public String getClassType()
CLASS_PUBLIC,
CLASS_PRIVATE,
CLASS_CONFIDENTIALpublic void setClassType(String classType)
classType - CLASS_PUBLIC,
CLASS_PRIVATE,
CLASS_CONFIDENTIALpublic String getSummary()
public String getSummary(TimePoint calendarTimePoint)
public void setCategory(CalendarCategory category)
category - public void setCalendarAlarm(CalendarAlarm calendarAlarm)
calendarAlarm -
public void setStartDate(TimePoint startDate,
int durationInMinutes)
startDate - durationInMinutes - public void setDescription(String description)
description - public void setStartDate(TimePoint startDate)
startDate - public void setEndDate(TimePoint endDate)
endDate - public void setTimeZone(TimeZone timeZone)
timeZone - public void setDurationInMinutes(int durationInMinutes)
durationInMinutes - public void setOrganizer(String organizer)
organizer - public void setLocation(String location)
location - public void setReoccurence(int reoccurence)
reoccurence - the reoccurrence for this event.REOCCURENCE_YEARLY,
REOCCURENCE_MONTHLY,
REOCCURENCE_WEEKLY,
REOCCURENCE_DAILY,
REOCCURENCE_NONE,
setRepeat(EventRepeatRule)public void setRepeat(EventRepeatRule eventRepeatRule)
eventRepeatRule - the new repeat rulesetReoccurence(int)public void setStatus(String status)
status - public void setId(String id)
id - public void setAllday(boolean isAllday)
isAllday - public void setSequence(int sequence)
sequence - public void setSummary(String summary)
summary - public EventRepeatRule getRepeat()
public int getAlarm()
public void setAlarm(int alarm)
alarm - sets the alarm to the given valuepublic String getNotes()
public void setNotes(String notes)
notes - sets the notes for this calendar entrypublic Object getField(String name)
name - the name of the field key
setField(String, Object)
public void setField(String name,
Object value)
name - the name of the fieldvalue - the value of the fieldgetField(String)public String getUserId()
public void setUserId(String userId)
public void write(DataOutputStream out)
throws IOException
Externalizable
write in interface Externalizableout - the output stream to which instance fields should be written
IOException - when writing fails
public void read(DataInputStream in)
throws IOException
Externalizable
read in interface Externalizablein - the input stream from which the data is loaded
IOException - when reading failspublic CalendarEntry clone(TimePoint start)
start - the new and only date for the cloned copy
public boolean matches(TimePeriod period)
period - the period
public CalendarEntry getParent()
public CalendarEntry[] getChildren()
public void setChildren(CalendarEntryList entryList)
entryList - A CalendarEntryList which contains the children.public int getYearsSinceStart(TimePoint timePoint)
timePoint - the time point
public void setStartDate(Date date)
public void setEndDate(Date date)
public void setTextResolver(CalendarTextResolver resolver)
resolver - the resolver, use null for removing the resolver.public CalendarTextResolver getTextResolver()
public long getGuid()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||