public class ERSimpleEvent extends Object implements ERCalendarEvent
ERCalendarEvent interface
,
for use by the ERPublishCalendarPage component
.
ERSimpleEvent objects can be created corresponding to your events and added to ERPublishCalendarPage to create a calendar.
Subclass ERSimpleEvent if more advanced features are needed.
Modifier and Type | Field and Description |
---|---|
protected NSTimestamp |
endTime |
protected NSTimestamp |
startTime |
protected String |
status |
protected String |
summary |
protected String |
uniqueId |
protected boolean |
wholeDay |
Constructor and Description |
---|
ERSimpleEvent(NSTimestamp aStartTime,
NSTimestamp anEndTime,
String aSummary,
String aUniqueId) |
Modifier and Type | Method and Description |
---|---|
NSTimestamp |
endTime()
Return the end time of this event.
|
int |
repeatCount()
Return the number of occurences of a repeating event.
|
int |
repeatDayOfWeek()
Return the day of week of a repeating event, or 0 for unspecified
day of week.
|
int |
repeatDayOfWeekInMonth()
Return the ordinal number of day of the week within a month
at which the event repeats.
|
NSArray |
repeatDaysOfMonth()
Return an array of
Integer indicating the days
within a month, at which the event repeats, or
null for not restricting repeating
to certain days. |
int |
repeatFrequency()
Return the frequency of a repeating event, or 0 for a one time
event.
|
int |
sequence()
Return the change counter of this event.
|
NSTimestamp |
startTime()
Return the start time of this event.
|
String |
status()
Return the status of this event.
|
String |
summary()
Return a summary or textual description of this event.
|
String |
uniqueId()
Return a persistent, globally unique identifier for this
event.
|
boolean |
wholeDay()
Return
false if this event have specified
start and ending times. |
protected NSTimestamp endTime
protected NSTimestamp startTime
protected String status
protected String summary
protected String uniqueId
protected boolean wholeDay
public ERSimpleEvent(NSTimestamp aStartTime, NSTimestamp anEndTime, String aSummary, String aUniqueId)
aStartTime
- start time of this eventanEndTime
- end time of this eventaSummary
- summary or textual description of this
eventaUniqueId
- a persistent, globally unique identifier
for this eventERCalendarEvent.startTime()
,
ERCalendarEvent.endTime()
,
ERCalendarEvent.summary()
,
ERCalendarEvent.uniqueId()
public boolean wholeDay()
ERCalendarEvent
false
if this event have specified
start and ending times.
true
if this event is a whole-day
event without a specific starting and ending hour
and minute.wholeDay
in interface ERCalendarEvent
false
.
ERSimpleEvent doesn't support whole-day events.ERCalendarEvent.wholeDay()
public NSTimestamp startTime()
ERCalendarEvent
startTime
in interface ERCalendarEvent
constructor
ERCalendarEvent.startTime()
public NSTimestamp endTime()
ERCalendarEvent
endTime
in interface ERCalendarEvent
constructor
ERCalendarEvent.endTime()
public int sequence()
ERCalendarEvent
sequence
in interface ERCalendarEvent
ERCalendarEvent.sequence()
public String status()
ERCalendarEvent
status
in interface ERCalendarEvent
null
since ERSimpleEvent doesn't support
event status.ERCalendarEvent.status()
public String summary()
ERCalendarEvent
summary
in interface ERCalendarEvent
constructor
ERCalendarEvent.summary()
public String uniqueId()
ERCalendarEvent
uniqueId
in interface ERCalendarEvent
constructor
ERCalendarEvent.uniqueId()
public int repeatFrequency()
ERCalendarEvent
java.util.Calendar
field numbers
YEAR
, MONTH
,
WEEK_OF_YEAR
, DAY_OF_MONTH
,
HOUR_OF_DAY
, MINUTE
or
SECOND
.repeatFrequency
in interface ERCalendarEvent
ERCalendarEvent.repeatCount()
public int repeatCount()
ERCalendarEvent
ERCalendarEvent.repeatFrequency()
returns 0.repeatCount
in interface ERCalendarEvent
repeatFrequency()
always return 0).repeatFrequency()
public int repeatDayOfWeek()
ERCalendarEvent
java.util.Calendar
DAY_OF_WEEK
field values SUNDAY
, MONDAY
,
TUESDAY
, WEDNESDAY
,
THURSDAY
, FRIDAY
,
SATURDAY
or as the value 0. Ignored if
ERCalendarEvent.repeatFrequency()
returns 0.repeatDayOfWeek
in interface ERCalendarEvent
repeatFrequency()
always returns 0).repeatFrequency()
public int repeatDayOfWeekInMonth()
ERCalendarEvent
ERCalendarEvent.repeatDayOfWeek()
it uniquely specifies a day
within the month. Ignored if ERCalendarEvent.repeatFrequency()
returns 0.repeatDayOfWeekInMonth
in interface ERCalendarEvent
repeatFrequency()
always returns 0).repeatFrequency()
public NSArray repeatDaysOfMonth()
ERCalendarEvent
Integer
indicating the days
within a month, at which the event repeats, or
null
for not restricting repeating
to certain days.
Together with ERCalendarEvent.repeatDayOfWeek()
it uniquely
specifies a day within the month (Keep in mind
that iCal 1.0 does not properly handle this).
Ignored if ERCalendarEvent.repeatFrequency()
returns 0.repeatDaysOfMonth
in interface ERCalendarEvent
null
indicating unspecified days
within a month (although this method is never
called since repeatFrequency()
always
returns 0.repeatFrequency()
Copyright © 2002 – 2024 Project Wonder.