public abstract class EventAsyncAdapter extends EventAdapter
Constructor and Description |
---|
EventAsyncAdapter(RadCalendarView owner)
Creates a new instance of the
EventAsyncAdapter class for handling async event loading. |
EventAsyncAdapter(RadCalendarView owner,
List<Event> events)
Creates a new instance of the
EventAsyncAdapter class for handling async event loading. |
Modifier and Type | Method and Description |
---|---|
void |
readEventsAsync()
Used to read the events from the calendar provider.
|
void |
requestEventsForDates(List<Long> dates,
GenericResultCallback<HashMap<Long,List<Event>>> callback)
Used to collect events information for the given collection of dates.
|
addEvent, getEvents, getEventsForDate, getRenderer, setEvents, setRenderer
public EventAsyncAdapter(RadCalendarView owner)
EventAsyncAdapter
class for handling async event loading.owner
- the calendar instance owning this adapter.public EventAsyncAdapter(RadCalendarView owner, List<Event> events)
EventAsyncAdapter
class for handling async event loading.owner
- the calendar instance owning this adapter.events
- the local events.public void readEventsAsync()
public void requestEventsForDates(List<Long> dates, GenericResultCallback<HashMap<Long,List<Event>>> callback)
EventAdapter
requestEventsForDates
in class EventAdapter
dates
- the dates for which events will be collected.callback
- the callback for returning the events.