|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
com.std.model.appointment.Appointment
public class Appointment
data profile for a single appointment
| Field Summary | |
|---|---|
static java.util.Comparator<Appointment> |
COMPARATOR_APPOINTMENT_END
compares two Appointments by their end dates |
static java.util.Comparator<Appointment> |
COMPARATOR_APPOINTMENT_START
compares two Appointments by their start dates |
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
Appointment()
instantiates an appointment to default values. title is initialized to "New Appointment". start and end dates are initialized to the current date and time. |
|
Appointment(java.lang.String title,
java.lang.String description,
DateRange dateRange)
instantiates an appointment to the given values. |
|
| Method Summary | |
|---|---|
DateRange |
getDateRange()
|
java.lang.String |
getDescription()
|
java.util.Date |
getEndDate()
|
java.util.Date |
getStartDate()
|
java.lang.String |
getTitle()
|
int |
hashCode()
|
ObservableEvent |
onChanged()
|
void |
setDateRange(DateRange dateRange)
changes the appointment start and end dates |
void |
setDescription(java.lang.String description)
changes the appointment description |
void |
setEndDate(java.util.Date endDate)
changes the appointment end date |
void |
setStartDate(java.util.Date startDate)
changes the appointment start date |
void |
setTitle(java.lang.String title)
changes the appointment title |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.util.Comparator<Appointment> COMPARATOR_APPOINTMENT_START
public static final java.util.Comparator<Appointment> COMPARATOR_APPOINTMENT_END
| Constructor Detail |
|---|
public Appointment()
public Appointment(java.lang.String title,
java.lang.String description,
DateRange dateRange)
title - appointment titledescription - appointment descriptiondateRange - appointment date range| Method Detail |
|---|
public DateRange getDateRange()
public java.lang.String getDescription()
public java.util.Date getEndDate()
public java.util.Date getStartDate()
public java.lang.String getTitle()
public int hashCode()
hashCode in class java.lang.Objectpublic ObservableEvent onChanged()
public void setDateRange(DateRange dateRange)
dateRange - the appointment start and end datespublic void setDescription(java.lang.String description)
description - the appointment descriptionpublic void setEndDate(java.util.Date endDate)
endDate - the appointment end datepublic void setStartDate(java.util.Date startDate)
startDate - the appointment start datepublic void setTitle(java.lang.String title)
title - the appointment titlepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||