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 com.webobjects.foundation.NSTimestamp |
endTime |
protected com.webobjects.foundation.NSTimestamp |
startTime |
protected String |
status |
protected String |
summary |
protected String |
uniqueId |
protected boolean |
wholeDay |
| Constructor and Description |
|---|
ERSimpleEvent(com.webobjects.foundation.NSTimestamp aStartTime,
com.webobjects.foundation.NSTimestamp anEndTime,
String aSummary,
String aUniqueId) |
| Modifier and Type | Method and Description |
|---|---|
com.webobjects.foundation.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.
|
com.webobjects.foundation.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 com.webobjects.foundation.NSTimestamp endTime
protected com.webobjects.foundation.NSTimestamp startTime
protected String status
protected String summary
protected String uniqueId
protected boolean wholeDay
public ERSimpleEvent(com.webobjects.foundation.NSTimestamp aStartTime,
com.webobjects.foundation.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()
ERCalendarEventfalse 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 ERCalendarEventfalse.
ERSimpleEvent doesn't support whole-day events.ERCalendarEvent.wholeDay()public com.webobjects.foundation.NSTimestamp startTime()
ERCalendarEventstartTime in interface ERCalendarEventconstructorERCalendarEvent.startTime()public com.webobjects.foundation.NSTimestamp endTime()
ERCalendarEventendTime in interface ERCalendarEventconstructorERCalendarEvent.endTime()public int sequence()
ERCalendarEventsequence in interface ERCalendarEventERCalendarEvent.sequence()public String status()
ERCalendarEventstatus in interface ERCalendarEventnull since ERSimpleEvent doesn't support
event status.ERCalendarEvent.status()public String summary()
ERCalendarEventsummary in interface ERCalendarEventconstructorERCalendarEvent.summary()public String uniqueId()
ERCalendarEventuniqueId in interface ERCalendarEventconstructorERCalendarEvent.uniqueId()public int repeatFrequency()
ERCalendarEventjava.util.Calendar field numbers
YEAR, MONTH,
WEEK_OF_YEAR, DAY_OF_MONTH,
HOUR_OF_DAY, MINUTE or
SECOND.repeatFrequency in interface ERCalendarEventERCalendarEvent.repeatCount()public int repeatCount()
ERCalendarEventERCalendarEvent.repeatFrequency() returns 0.repeatCount in interface ERCalendarEventrepeatFrequency() always return 0).repeatFrequency()public int repeatDayOfWeek()
ERCalendarEventjava.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 ERCalendarEventrepeatFrequency()
always returns 0).repeatFrequency()public int repeatDayOfWeekInMonth()
ERCalendarEventERCalendarEvent.repeatDayOfWeek() it uniquely specifies a day
within the month. Ignored if ERCalendarEvent.repeatFrequency()
returns 0.repeatDayOfWeekInMonth in interface ERCalendarEventrepeatFrequency() always returns 0).repeatFrequency()public NSArray repeatDaysOfMonth()
ERCalendarEventInteger 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 ERCalendarEventnull indicating unspecified days
within a month (although this method is never
called since repeatFrequency() always
returns 0.repeatFrequency()Copyright © 2002 – 2020 Project Wonder.