CalendarPageSource
The core calendar page source interface. Calendar page sources are used to provide a layout to calendar pages. See CalendarMonthPageSource and CalendarWeekPageSource for default implementations.
Functions
Get the page number for the given date. This function should be as lightweight as possible, as no results here are cached.
Takes a page number and a DisplayDate producer, and returns a set of rows to display in the calendar UI. This should not implement any caching itself, caching is handled by consumers.
Maps the given internal position of a zero-based pager to the page number. Note this is not necessary if we have a pager that supports negative numbers in the first place.
Maps the given page number to an internal zero-based position. Note this is not necessary if we have a pager that supports negative numbers in the first place.
Properties
Defines the maximum number of pages to be displayed. Pages are zero-based, therefore negative values represent pages before the start page, and positive values represent pages after the start page. Note the total number of pages should not exceed Int.MAX_VALUE.