|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
er.extensions.batching.AbstractBatchingList
public abstract class AbstractBatchingList
Partial implementation of the IBatchingList interface that handles page invalidation and most of the List interface.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
AbstractBatchingList()
|
Method Summary | |
---|---|
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,
com.webobjects.foundation.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(com.webobjects.foundation.NSArray sortOrderings)
Sets the sort orderings of this list. |
int |
size()
|
Methods inherited from class java.util.AbstractList |
---|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
Constructor Detail |
---|
public AbstractBatchingList()
Method Detail |
---|
protected abstract boolean isPageLoaded()
protected abstract void loadPage(int startingIndex, int pageSize, com.webobjects.foundation.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 return
protected void ensurePageLoaded(int index)
public java.lang.Object get(int index)
get
in interface java.util.List
get
in class java.util.AbstractList
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class java.util.AbstractCollection
public void setPageIndex(int pageIndex)
IBatchingList
setPageIndex
in interface IBatchingList
pageIndex
- the page numberpublic void setPageSize(int pageSize)
IBatchingList
setPageSize
in interface IBatchingList
pageSize
- the page sizepublic void setSortOrderings(com.webobjects.foundation.NSArray sortOrderings)
IBatchingList
setSortOrderings
in interface IBatchingList
sortOrderings
- the sort orderings array
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |