public class EventAdapter extends Object
RadCalendarView
.Constructor and Description |
---|
EventAdapter(RadCalendarView owner)
Creates a new instance of the
EventAdapter class. |
EventAdapter(RadCalendarView owner,
List<Event> events)
Creates a new instance of the
EventAdapter class. |
Modifier and Type | Method and Description |
---|---|
void |
addEvent(Event event)
Deprecated.
|
List<Event> |
getEvents()
Gets the list of all events handled by this adapter.
|
List<Event> |
getEventsForDate(long date)
Gets a list of events that should be displayed for the provided date.
|
EventRenderer |
getRenderer()
Gets the current
EventRenderer
which is responsible for the drawing of the events. |
void |
requestEventsForDates(List<Long> dates,
GenericResultCallback<HashMap<Long,List<Event>>> callback)
Used to collect events information for the given collection of dates.
|
void |
setEvents(List<Event> events)
Sets the list of all events handled by this adapter.
|
void |
setRenderer(EventRenderer renderer)
Sets an
EventRenderer
which will be responsible for the drawing of the events. |
public EventAdapter(RadCalendarView owner)
EventAdapter
class.owner
- the calendar instance owning this adapter.public EventAdapter(RadCalendarView owner, List<Event> events)
EventAdapter
class.owner
- the calendar instance owning this adapter.events
- list of events for this adapterpublic void requestEventsForDates(List<Long> dates, GenericResultCallback<HashMap<Long,List<Event>>> callback)
dates
- the dates for which events will be collected.callback
- the callback for returning the events.public List<Event> getEventsForDate(long date)
date
- the date of the events that we need to displaypublic void addEvent(Event event)
setEvents(java.util.List)
instead.event
- the event to be added.public List<Event> getEvents()
public void setEvents(List<Event> events)
events
- the list of all eventspublic EventRenderer getRenderer()
EventRenderer
which is responsible for the drawing of the events.public void setRenderer(EventRenderer renderer)
EventRenderer
which will be responsible for the drawing of the events.renderer
- the new event renderer