|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E10684-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.view.rich.model.CalendarActivity
public abstract class CalendarActivity
Base abstract class that represents an activity rendered in a Calendar component.
Nested Class Summary | |
---|---|
static class |
CalendarActivity.Recurring Recurring information of calendar activity. |
static class |
CalendarActivity.Reminder Reminder information of calendar activity. |
static class |
CalendarActivity.TimeType Whether or not time (hours, minutes, etc) is relevant. |
Constructor Summary | |
---|---|
CalendarActivity() |
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getCustomAttributes() Gets the custom attributes of the activity. |
abstract java.util.Date |
getEndDate(java.util.TimeZone tz) Gets the end date of the activity. |
abstract java.lang.String |
getId() Gets the id of the actiivty, this should be unique per providerId. |
java.lang.String |
getLocation() Gets the location of activity. |
CalendarProvider |
getProvider() Gets the provider, which represents the owner or source of the activity. |
CalendarActivity.Recurring |
getRecurring() Gets the Recurring information for the activity. |
CalendarActivity.Reminder |
getReminder() Gets the Reminder information for the activity. |
abstract java.util.Date |
getStartDate(java.util.TimeZone tz) Gets the start date of the activity. |
java.util.Set<java.lang.String> |
getTags() Gets the tags associated with the activity. |
CalendarActivity.TimeType |
getTimeType() Gets the TimeType information for an activity. |
java.lang.String |
getTitle() Gets the title of the activity. |
boolean |
isReadOnly() Whether the activity is read only. |
void |
setEndDate(java.util.Date endDate, java.util.TimeZone tz) Sets the end date of the activity. |
void |
setLocation(java.lang.String location) Sets the location of the activity. |
void |
setRecurring(CalendarActivity.Recurring recurring) Sets the Recurring information of the activity. |
void |
setReminder(CalendarActivity.Reminder reminder) Sets the Reminder information of the activity. |
void |
setStartDate(java.util.Date startDate, java.util.TimeZone tz) Sets the start date of the activity. |
void |
setTags(java.util.Set<java.lang.String> tags) Sets the tags of the activity. |
void |
setTimeType(CalendarActivity.TimeType timeType) Sets the TimeType information of the activity. |
void |
setTitle(java.lang.String title) Sets the title of the activity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalendarActivity()
Method Detail |
---|
public abstract java.lang.String getId()
public CalendarProvider getProvider()
public abstract java.util.Date getStartDate(java.util.TimeZone tz)
An allday activity (TimeType = ALLDAY) for May 3 2008 is required to return May 3 2008 12:00am for the start date.
Although java.util.Dates are mutable, the date returned should be stable per request. Also, the date returned is a new Date instance, changes to it will not change the underlying data.
public abstract java.util.Date getEndDate(java.util.TimeZone tz)
The end date is exclusive. Meaning if there are 2 activities, the first from 9-10am and the second from 10-11am, the start time of activity 2 does not conflict with the end time of activity 1, because the end time of activity 1 is not considered part of the activity. This also applies to activities that last the full day, for example if an activity lasts all day on May 3 2008, then the end date should be May 4 2008 12:00am.
An all day activity (TimeType = ALLDAY) is required to return midnight the following day for the end date. For example an all day activity for May 3 2008 is required to return May 4 2008 12:00 am for the end date. Similarly a two day all day activity for May 3 and May 4 2008 would return May 5 2008 12:00 am. Note that the seconds and millisecond value should be zeroed out as well.
Although java.util.Dates are mutable, the date returned should be stable per request. Also, the date returned is a new Date instance, changes to it will not change the underlying data.
public java.util.Set<java.lang.String> getTags()
Tags may be used to categorize an activity in some way, for example they may be used to style an activity.
public java.lang.String getTitle()
public java.lang.String getLocation()
public CalendarActivity.Reminder getReminder()
public CalendarActivity.Recurring getRecurring()
The Calendar model needs to generate separate CalendarActivity objects representing each recurring calendar activity.
The information returned from this method (getRecurring) is information the calendar component may use to do something like render an icon.
public CalendarActivity.TimeType getTimeType()
This information is used to know whether or not time (hours, minutes, etc) is relevant.
public java.util.Map<java.lang.String,java.lang.Object> getCustomAttributes()
The attributes with getters on CalendarActivity are those that are needed by a calendar component to render activities. However the activity doubtless has additional attributes that a calendar component is not aware of. For example there may be a list of attendees or a description. CustomAttributes allows access to custom attributes through the CalendarActivity api itself, without having to cast or refer to a subclass.
Application developers should use the custom attributes map for custom attributes rather than subclassing calendarActivity. In this way if additional attributes are added to calendarActivity it will not conflict with subclass methods.
Built in attributes like title, location, etc, are not in the custom attribute map.
public boolean isReadOnly()
The default value is true.
public void setStartDate(java.util.Date startDate, java.util.TimeZone tz)
Because java.util.Dates are mutable a new date instance will be stored, thus changes to the date instance passed in will not change the underlying data.
startDate
- the new start datetz
- the timezone for the new start datejava.lang.UnsupportedOperationException
- if not being overriden.public void setEndDate(java.util.Date endDate, java.util.TimeZone tz)
Because java.util.Dates are mutable a new date instance will be stored, thus changes to the date instance passed in will not change the underlying data.
endDate
-tz
- the timezone for the new end datejava.lang.UnsupportedOperationException
- if not overriden.public void setTags(java.util.Set<java.lang.String> tags)
tags
-java.lang.UnsupportedOperationException
- if not overriden.public void setTitle(java.lang.String title)
title
-java.lang.UnsupportedOperationException
- if not overriden.public void setLocation(java.lang.String location)
location
-java.lang.UnsupportedOperationException
- if not overriden.public void setReminder(CalendarActivity.Reminder reminder)
reminder
-java.lang.UnsupportedOperationException
- if not overriden.public void setRecurring(CalendarActivity.Recurring recurring)
recurring
-java.lang.UnsupportedOperationException
- if not overriden.public void setTimeType(CalendarActivity.TimeType timeType)
timeType
-java.lang.UnsupportedOperationException
- if not overriden.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E10684-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |