|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bradrydzewski.gwt.calendar.client.Appointment
public class Appointment
Represents an event that Calendar Views display and manipulate through the gwt-cal provided user interface elements.
The Appointment class provides a set of text-based properties to
describe it, including a title, description, location, createdBy,
etc. Additional to these, there is a set of properties that exist to provide
the gwt-cal components with information useful during the
Appointment rendering in the widget views (allDay,
recurring, etc.)
All Appointment properties are ultimately used by the gwt-cal
views and it is up to these components to decide how to render (if at all)
them as well as to provide appropriate runtime features to modify them.
| Constructor Summary | |
|---|---|
Appointment()
Creates an Appointment with the following attributes set to
null
title
description
start
end
|
|
| Method Summary | |
|---|---|
Appointment |
clone()
|
int |
compareTo(Appointment appointment)
Compares this Appointment with the specified
appointment based first on the start dates of
each appointment and then (if they happen to be the same), on the
end dates. |
List<Attendee> |
getAttendees()
Returns the collection of associated attendees. |
String |
getCreatedBy()
Returns a creator of this Appointment. |
String |
getCustomStyle()
|
String |
getDescription()
Returns a description for this Appointment. |
Date |
getEnd()
Returns the configured end time-stamp of this Appointment. |
String |
getId()
Returns the unique identifier for this Appointment. |
String |
getLocation()
Returns a location of this Appointment. |
Date |
getStart()
Returns the configured start time-stamp of this Appointment. |
AppointmentStyle |
getStyle()
|
String |
getTitle()
Returns the identifying title of this Appointment. |
boolean |
isAllDay()
Returns the configured value of the allDay property, which
indicates if this Appointment should be considered as
spanning all day. |
boolean |
isMultiDay()
Tells whether this Appointment spans more than a single day,
based on its start and end properties. |
boolean |
isReadOnly()
|
void |
setAllDay(boolean allDay)
Configures the the allDay property, which indicates if this
Appointment should be considered as spanning all day. |
void |
setAttendees(List<Attendee> attendees)
Sets the attendees associated to this Appointment. |
void |
setCreatedBy(String createdBy)
Sets the creator of this Appointment. |
void |
setCustomStyle(String customStyle)
|
void |
setDescription(String description)
Sets the description of this Appointment. |
void |
setEnd(Date end)
Sets the end time-stamp of this Appointment. |
void |
setId(String id)
Sets the unique identifier of this Appointment. |
void |
setLocation(String location)
Sets the location of this Appointment. |
void |
setReadOnly(boolean readOnly)
|
void |
setStart(Date start)
Sets the start time-stamp of this Appointment. |
void |
setStyle(AppointmentStyle style)
|
void |
setTitle(String title)
Sets the identifying title of this Appointment. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Appointment()
Creates an Appointment with the following attributes set to
null
titledescriptionstartendlocationcreatedByattendees collection empty and the allDay
property false.
| Method Detail |
|---|
public String getId()
Appointment.
The field is optional (and not used by gwt-cal) and therefore
may be null.
public void setId(String id)
Appointment.
This identifier is optional.
id - public Date getStart()
Appointment.
public void setStart(Date start)
Appointment.
start - A date object with the date and time this appointment startspublic Date getEnd()
Appointment.
public void setEnd(Date end)
Appointment.
end - A date object with the date and time this appointment startspublic String getTitle()
Appointment.
public void setTitle(String title)
Appointment.
title - The title's short textpublic String getDescription()
Appointment.
appointment's descriptionpublic void setDescription(String description)
Appointment.
description - The title's short textpublic String getLocation()
Appointment.
appointment location.public void setLocation(String location)
Appointment.
location - The appointment locationpublic String getCreatedBy()
Appointment.
appointment creator description.public void setCreatedBy(String createdBy)
Appointment.
createdBy - The appointment creator description.public List<Attendee> getAttendees()
public void setAttendees(List<Attendee> attendees)
Appointment.
attendees - The entities associated (attending) this
Appointmentpublic int compareTo(Appointment appointment)
Appointment with the specified
appointment based first on the start dates of
each appointment and then (if they happen to be the same), on the
end dates.
compareTo in interface Comparable<Appointment>appointment - The appointment to compare this one to
this appointment
is before appointment, zero if
both appointments have the same start/
end dates, and a positive integer if
this appointment is after
appointment.public boolean isMultiDay()
Appointment spans more than a single day,
based on its start and end properties.
true if the start and end
dates fall on different dates, false otherwise.public boolean isAllDay()
allDay property, which
indicates if this Appointment should be considered as
spanning all day. It is left to the view rendering this
Appointment to decide how to render an appointment based on
this property value. For instance, the month view, will display the
Appointment at the top of the days in a week.
allDay propertypublic void setAllDay(boolean allDay)
allDay property, which indicates if this
Appointment should be considered as spanning all day. It is
left to the view rendering this Appointment to decide how to
render an appointment based on this property value. For instance, the
month view, will display the Appointment at the top of the
days in a week.
allDay - The current value of the allDay propertypublic Appointment clone()
clone in class Objectpublic AppointmentStyle getStyle()
public void setStyle(AppointmentStyle style)
public String getCustomStyle()
public void setCustomStyle(String customStyle)
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||