public abstract class AbstractBatchingList extends java.util.AbstractList implements IBatchingList
| Constructor and Description |
|---|
AbstractBatchingList() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensurePageLoaded(int index) |
java.lang.Object |
get(int index) |
protected abstract java.lang.Object |
getFromPage(int index)
Returns the index'th element from the current page.
|
protected abstract int |
getTotalCount()
Returns the total size of this list.
|
protected abstract void |
invalidatePage()
Invalidates the current page of objects, requiring a reload.
|
protected abstract boolean |
isPageLoaded()
Returns whether or not the current page has been loaded.
|
protected abstract void |
loadPage(int startingIndex,
int pageSize,
NSArray sortOrderings)
Loads one page into this list.
|
void |
setPageIndex(int pageIndex)
Sets the page number that is currently being viewed on this list.
|
void |
setPageSize(int pageSize)
Sets the page size of this list.
|
void |
setSortOrderings(NSArray sortOrderings)
Sets the sort orderings of this list.
|
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected abstract boolean isPageLoaded()
protected abstract void loadPage(int startingIndex,
int pageSize,
NSArray sortOrderings)
startingIndex - the index of the first element of the page (in element units, not page units)pageSize - the size of the page to loadsortOrderings - the list of sort orderingsprotected abstract void invalidatePage()
protected abstract int getTotalCount()
protected abstract java.lang.Object getFromPage(int index)
index - the index of the element to returnprotected void ensurePageLoaded(int index)
public java.lang.Object get(int index)
get in interface java.util.Listget in class java.util.AbstractListpublic int size()
size in interface java.util.Collectionsize in interface java.util.Listsize in class java.util.AbstractCollectionpublic void setPageIndex(int pageIndex)
IBatchingListsetPageIndex in interface IBatchingListpageIndex - the page numberpublic void setPageSize(int pageSize)
IBatchingListsetPageSize in interface IBatchingListpageSize - the page sizepublic void setSortOrderings(NSArray sortOrderings)
IBatchingListsetSortOrderings in interface IBatchingListsortOrderings - the sort orderings arrayCopyright © 2002 – 2022 Project Wonder.