public class ICalAgenda extends Object implements Agenda
Constructor and Description |
---|
ICalAgenda()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addEvent(Event event)
Add an event to the agenda
|
List<Event> |
getEvents()
Retrieves all events of the agenda
|
List<Event> |
getEventsByDate(Date dateBegin,
Date dateEnd,
Locale localeEnv)
The events which occur between a start and end date
|
List<Event> |
getEventsByDate(String strDate)
Retrieves events for a given date
|
String |
getKeyName()
Returns the KeyName
|
String |
getName()
Returns the name of the Agenda
|
boolean |
hasEvents(String strDate)
Indicates if the agenda gets events for a given date
|
void |
setEvents(net.fortuna.ical4j.model.Calendar calendar)
Sets events of the agenda
|
void |
setKeyName(String strKeyName)
Sets the KeyName
|
void |
setName(String strName)
Defines the name of the Agenda
|
public String getName()
public void setName(String strName)
public String getKeyName()
getKeyName
in interface Agenda
public void setKeyName(String strKeyName)
setKeyName
in interface Agenda
strKeyName
- The KeyNamepublic boolean hasEvents(String strDate)
public List<Event> getEventsByDate(String strDate)
getEventsByDate
in interface Agenda
strDate
- A date codepublic void setEvents(net.fortuna.ical4j.model.Calendar calendar)
calendar
- An iCal calendarpublic void addEvent(Event event)
event
- The event to addpublic List<Event> getEventsByDate(Date dateBegin, Date dateEnd, Locale localeEnv)
getEventsByDate
in interface Agenda
dateBegin
- The start datedateEnd
- The end datelocaleEnv
- The localeCopyright © 2015 City of Paris. All rights reserved.