er.calendar
Class ERSimpleEvent
java.lang.Object
er.calendar.ERSimpleEvent
- All Implemented Interfaces:
- ERCalendarEvent
- public class ERSimpleEvent
- extends Object
- implements ERCalendarEvent
ERSimpleEvent is an simple implementation of an event class,
implementing the 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.
- Version:
- 1.0, 2002-09-30
- Author:
- Johan Carlberg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
endTime
protected NSTimestamp endTime
startTime
protected NSTimestamp startTime
status
protected String status
summary
protected String summary
uniqueId
protected String uniqueId
wholeDay
protected boolean wholeDay
ERSimpleEvent
public ERSimpleEvent(NSTimestamp aStartTime,
NSTimestamp anEndTime,
String aSummary,
String aUniqueId)
- Parameters:
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 event- See Also:
ERCalendarEvent.startTime()
,
ERCalendarEvent.endTime()
,
ERCalendarEvent.summary()
,
ERCalendarEvent.uniqueId()
wholeDay
public boolean wholeDay()
- Specified by:
wholeDay
in interface ERCalendarEvent
- Returns:
- always returns
false
.
ERSimpleEvent doesn't support whole-day events. - See Also:
ERCalendarEvent.wholeDay()
startTime
public NSTimestamp startTime()
- Specified by:
startTime
in interface ERCalendarEvent
- Returns:
- the start time of this event as specified in the
constructor
- See Also:
ERCalendarEvent.startTime()
endTime
public NSTimestamp endTime()
- Specified by:
endTime
in interface ERCalendarEvent
- Returns:
- the end time of this event as specified in the
constructor
- See Also:
ERCalendarEvent.endTime()
sequence
public int sequence()
- Specified by:
sequence
in interface ERCalendarEvent
- Returns:
- the change counter of this event.
Computed from the current time, and will increase every
ten seconds.
- See Also:
ERCalendarEvent.sequence()
status
public String status()
- Specified by:
status
in interface ERCalendarEvent
- Returns:
null
since ERSimpleEvent doesn't support
event status.- See Also:
ERCalendarEvent.status()
summary
public String summary()
- Specified by:
summary
in interface ERCalendarEvent
- Returns:
- the summary of this event as specified in the
constructor
- See Also:
ERCalendarEvent.summary()
uniqueId
public String uniqueId()
- Specified by:
uniqueId
in interface ERCalendarEvent
- Returns:
- the unique id of this event as specified in the
constructor
- See Also:
ERCalendarEvent.uniqueId()
repeatFrequency
public int repeatFrequency()
- Specified by:
repeatFrequency
in interface ERCalendarEvent
- Returns:
- 0 indicating a non-repeating event. ERSimpleEvent doesn't
support repeating events.
- See Also:
ERCalendarEvent.repeatCount()
repeatCount
public int repeatCount()
- Specified by:
repeatCount
in interface ERCalendarEvent
- Returns:
- 1 indicating a one-time event (although this method is
never called since
repeatFrequency()
always return 0). - See Also:
repeatFrequency()
repeatDayOfWeek
public int repeatDayOfWeek()
- Specified by:
repeatDayOfWeek
in interface ERCalendarEvent
- Returns:
- 0 indicating unspecified day of week (although this
method is never called since
repeatFrequency()
always returns 0). - See Also:
repeatFrequency()
repeatDayOfWeekInMonth
public int repeatDayOfWeekInMonth()
- Specified by:
repeatDayOfWeekInMonth
in interface ERCalendarEvent
- Returns:
- 0 indicating unspecified day of week in month
(although this method is never called since
repeatFrequency()
always returns 0). - See Also:
repeatFrequency()
repeatDaysOfMonth
public NSArray repeatDaysOfMonth()
- Specified by:
repeatDaysOfMonth
in interface ERCalendarEvent
- Returns:
null
indicating unspecified days
within a month (although this method is never
called since repeatFrequency()
always
returns 0.- See Also:
repeatFrequency()
Copyright © 2002 – 2004 Project Wonder.