public class MonthLoader<T> extends java.lang.Object implements WeekViewLoader<T>
WeekViewEvents into WeekView. It can handle
both concrete WeekViewEvent objects and WeekViewDisplayable objects. The latter is
an interface that can be implemented in one's actual data class and handles the conversion to a
WeekViewEvent.| Modifier and Type | Class and Description |
|---|---|
static interface |
MonthLoader.MonthChangeListener<T> |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<WeekViewEvent<T>> |
onLoad(int periodIndex)
Load the events within the period
|
double |
toWeekViewPeriodIndex(java.util.Calendar instance)
Convert a date into a double that will be used to reference when you're loading data.
|
public double toWeekViewPeriodIndex(java.util.Calendar instance)
WeekViewLoadertoWeekViewPeriodIndex in interface WeekViewLoader<T>instance - the datepublic java.util.List<WeekViewEvent<T>> onLoad(int periodIndex)
WeekViewLoaderonLoad in interface WeekViewLoader<T>periodIndex - the period to load