public class CalendarEvent extends Object
| Modifier and Type | Field and Description |
|---|---|
private Date |
_endDate
Date of the end of the event
|
private String |
_location
Location of the event
|
private Date |
_startDate
Date of the beginning of the event
|
private String |
_title
Title of the event
|
| Constructor and Description |
|---|
CalendarEvent()
Creates a empty calendar event
|
CalendarEvent(Date dateStart,
Date dateEnd,
String title,
String location)
Creates a new calendar event
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getEndDate()
Get the end date of the event
|
String |
getLocation()
Get the location of the event
|
Date |
getStartDate()
Get the start date of the event
|
String |
getSubject()
Get the subject of the event
|
void |
setEndDate(Date endDate)
Set the end date of the event to a new Date
|
void |
setLocation(String location)
Set the location of the event
|
void |
setStartDate(Date startDate)
Set the start date of the event
|
void |
setSubject(String title)
Set the title of the event
|
String |
toString() |
private Date _startDate
public CalendarEvent()
public CalendarEvent(Date dateStart, Date dateEnd, String title, String location)
dateStart - the date when the event startsdateEnd - the date when the event endstitle - the title of the eventlocation - the location of the eventpublic Date getStartDate()
public void setStartDate(Date startDate)
startDate - the start datepublic Date getEndDate()
public void setEndDate(Date endDate)
endDate - the end date to setpublic String getSubject()
public void setSubject(String title)
title - the title to setpublic String getLocation()
public void setLocation(String location)
location - the location to set