
Public Member Functions | |
| AbstractBatchingList () | |
| Object | get (int index) |
| void | setPageIndex (int pageIndex) |
| void | setPageSize (int pageSize) |
| void | setSortOrderings (NSArray sortOrderings) |
| int | size () |
Protected Member Functions | |
| void | ensurePageLoaded (int index) |
| abstract Object | getFromPage (int index) |
| abstract int | getTotalCount () |
| abstract void | invalidatePage () |
| abstract boolean | isPageLoaded () |
| abstract void | loadPage (int startingIndex, int pageSize, NSArray sortOrderings) |
Private Attributes | |
| int | _pageIndex |
| int | _pageSize |
| NSArray | _sortOrderings |
| void ensurePageLoaded | ( | int | index | ) | [protected] |
| Object get | ( | int | index | ) |
| abstract Object getFromPage | ( | int | index | ) | [protected, pure virtual] |
Returns the index'th element from the current page.
| index | the index of the element to return |
| abstract int getTotalCount | ( | ) | [protected, pure virtual] |
Returns the total size of this list.
| abstract void invalidatePage | ( | ) | [protected, pure virtual] |
Invalidates the current page of objects, requiring a reload.
| abstract boolean isPageLoaded | ( | ) | [protected, pure virtual] |
Returns whether or not the current page has been loaded.
| abstract void loadPage | ( | int | startingIndex, | |
| int | pageSize, | |||
| NSArray | sortOrderings | |||
| ) | [protected, pure virtual] |
Loads one page into this list.
| startingIndex | the index of the first element of the page (in element units, not page units) | |
| pageSize | the size of the page to load | |
| sortOrderings | the list of sort orderings |
| void setPageIndex | ( | int | _pageIndex | ) |
Sets the page number that is currently being viewed on this list.
| _pageIndex | the page number |
Implements IBatchingList.
| void setPageSize | ( | int | _pageSize | ) |
| void setSortOrderings | ( | NSArray | _sortOrderings | ) |
Sets the sort orderings of this list.
| _sortOrderings | the sort orderings array |
Implements IBatchingList.
| int size | ( | ) |
int _pageIndex [private] |
int _pageSize [private] |
NSArray _sortOrderings [private] |
1.5.8