|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.model.imp.AppointmentImp
Appointment definition
Field Summary | |
private boolean |
allDayEvent
This Flag indicates that this is an all day event. |
private java.util.Calendar |
endTime
The End Time. |
private java.lang.String |
id
The Unique Id for this Appointment |
private java.lang.String |
imageRef
Reference to an image for this Appointment Item |
private java.lang.String |
link
Optional Hyperlink |
private RecurrencePattern |
pattern
The recurrence pattern for recurring appointments |
private AppointmentPriority |
priority
Priority |
private java.util.Calendar |
startTime
The Start Time of the Appointment. |
private java.lang.String |
subject
Short description for this Appointment Item |
private java.lang.String |
text
Description Text |
Constructor Summary | |
AppointmentImp()
Creates a simple appointment |
|
AppointmentImp(java.lang.String id,
java.lang.String subject,
java.util.Calendar startTime,
AppointmentPriority priority)
Creates a simple all day event |
|
AppointmentImp(java.lang.String id,
java.lang.String subject,
java.util.Calendar startTime,
java.util.Calendar endTime,
AppointmentPriority priority)
Creates a simple appointment |
|
AppointmentImp(java.lang.String id,
java.lang.String subject,
java.util.Calendar startTime,
int duration,
AppointmentPriority priority)
Creates a simple appointment |
Method Summary | |
java.util.Calendar |
getEndTime()
The EndTime property contains the time at which the appointment is to terminate every time it recurs. |
java.lang.String |
getImageRef()
This method returns the image reference that is assigned to this appointment. |
java.lang.String |
getLink()
Retrieves a optional Hyperlink that can be associated with this appointment. |
AppointmentPriority |
getPriority()
Returns the Priority of this appointment |
RecurrencePattern |
getRecurrencePattern()
Returns the Recurrence Pattern for recurring appointments |
java.util.Calendar |
getStartTime()
Returns the starting time of the appointment |
java.lang.String |
getSubject()
Retrieves a short description for this Appointment |
java.lang.String |
getText()
Retrieves a long description for this Appointment |
java.lang.String |
getUniqueId()
Returns the unique Id or this appointment. |
boolean |
isAllDayEvent()
Checks if this is an all Day Event |
boolean |
isMultiDayEvent()
Checks if the appointment spans multiple days |
boolean |
isRecurring()
The isRecurring property indicates whether this appointment is specified as recurring |
boolean |
match(java.util.Calendar date)
This method checks if the recurrence pattern matches the given date |
AppointmentImp |
setAllDayEvent(boolean allDayEvent)
Makes this appointment an all day event |
void |
setEndTime(java.util.Calendar calendar)
Sets the appointments end time |
AppointmentImp |
setImageRef(java.lang.String imageRef)
Sets the image reference for this appointment. |
AppointmentImp |
setLink(java.lang.String string)
Sets the hyperlink that should be associated with this appointment. |
void |
setPriority(AppointmentPriority priority)
Sets the appointments priority |
AppointmentImp |
setRecurrencePattern(RecurrencePattern pattern)
Sets the recurrence pattern for recurring appointments |
void |
setStartTime(java.util.Calendar calendar)
Sets the appointments start time |
AppointmentImp |
setSubject(java.lang.String string)
Sets the appointments subject text. |
AppointmentImp |
setText(java.lang.String string)
Sets the long descriptive text for this appointment |
void |
setUniqueId(java.lang.String id)
Sets the unique identifier for this appointment |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String id
private boolean allDayEvent
private java.util.Calendar startTime
null
value indicates
an open beginning
private java.util.Calendar endTime
null
value indicates an open end
private AppointmentPriority priority
private RecurrencePattern pattern
private java.lang.String subject
private java.lang.String text
private java.lang.String link
private java.lang.String imageRef
Constructor Detail |
public AppointmentImp()
public AppointmentImp(java.lang.String id, java.lang.String subject, java.util.Calendar startTime, java.util.Calendar endTime, AppointmentPriority priority)
id
- The unique Id of this appointmentsubject
- The Appointments SubjectstartTime
- Start TimeendTime
- End Time or null
priority
- Prioritypublic AppointmentImp(java.lang.String id, java.lang.String subject, java.util.Calendar startTime, int duration, AppointmentPriority priority)
id
- The unique Id of this appointmentsubject
- The Appointments SubjectstartTime
- Start Timeduration
- Durationpriority
- Prioritypublic AppointmentImp(java.lang.String id, java.lang.String subject, java.util.Calendar startTime, AppointmentPriority priority)
id
- The unique Id of this appointmentsubject
- The Appointments SubjectstartTime
- Start Timepriority
- PriorityMethod Detail |
public AppointmentPriority getPriority()
Appointment
getPriority
in interface Appointment
Appointment.getPriority()
public RecurrencePattern getRecurrencePattern()
Appointment
getRecurrencePattern
in interface Appointment
Appointment.getRecurrencePattern()
public java.util.Calendar getStartTime()
Appointment
getStartTime
in interface Appointment
Appointment.getStartTime()
public java.util.Calendar getEndTime()
Appointment
getEndTime
in interface Appointment
Appointment.getEndTime()
public boolean isRecurring()
Appointment
isRecurring
in interface Appointment
true
if the
appointment is recurring and false
if it is not.
isRecurring defaults to false
in a newly created
AppointmentItem objectAppointment.isRecurring()
public java.lang.String getLink()
Appointment
getLink
in interface Appointment
null
Appointment.getLink()
public java.lang.String getText()
Appointment
getText
in interface Appointment
Appointment.getText()
public AppointmentImp setRecurrencePattern(RecurrencePattern pattern)
pattern
- Recurrence pattern
public java.lang.String getSubject()
Appointment
getSubject
in interface Appointment
Appointment.getSubject()
public boolean isAllDayEvent()
Appointment
isAllDayEvent
in interface Appointment
true
if this is an all day eventAppointment.isAllDayEvent()
public boolean isMultiDayEvent()
Appointment
isMultiDayEvent
in interface Appointment
true
if the appointment spans multiple daysAppointment.isMultiDayEvent()
public java.lang.String getImageRef()
Appointment
getImageRef
in interface Appointment
Appointment.getImageRef()
public java.lang.String getUniqueId()
Appointment
getUniqueId
in interface Appointment
Appointment.getUniqueId()
public void setUniqueId(java.lang.String id)
id
- unique identifierpublic AppointmentImp setAllDayEvent(boolean allDayEvent)
allDayEvent
- true
if this is an all day event
public AppointmentImp setImageRef(java.lang.String imageRef)
imageRef
- image for this appointment or null
public AppointmentImp setLink(java.lang.String string)
string
- Hyperlink
public AppointmentImp setSubject(java.lang.String string)
string
- Subject text
public AppointmentImp setText(java.lang.String string)
string
- Text
public void setPriority(AppointmentPriority priority)
priority
- the prioritypublic void setEndTime(java.util.Calendar calendar)
calendar
- end timepublic void setStartTime(java.util.Calendar calendar)
calendar
- Start Timepublic boolean match(java.util.Calendar date)
Appointment
match
in interface Appointment
date
- The date to check
true
if the pattern matches the DateAppointment.match(java.util.Calendar)
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |