public interface IDBVirtualList
Modifier and Type | Method and Description |
---|---|
int |
getCurrentIndex() |
java.lang.Object |
getElementAt(int index)
Fetchs data of a single list item
Recommend to call getSize() before getElementAt() or getElements()
since you'd better check if the index is out of bound first.
|
int |
getFirstIndex()
Gets the top of the buffer
|
java.lang.Object |
getJumpToElementAt(int i)
Retrieves and jumps to element in the given position.
|
boolean |
getPage(int first)
Get a page starting at "first" (although we may also fetch
some preceding entries)
Recommend to call getSize() before getElementAt() or getElements()
since you'd better check if the index is out of bound first.
|
boolean |
getPage(java.lang.String text)
Called by application to scroll the list with initial letters.
|
int |
getSelectedIndex()
Gets the virutal selected index
|
int |
getSize()
Retrieves the size of this virtual list.
|
int |
getSizeAfterJumpTo() |
int |
getSizeBeforeJumpTo()
Returns current index.
|
void |
processElements(int startidx,
int endidx,
IElementProcessor ep)
Processes elements as soon as it arrives.
|
void |
setPageSize(int size)
Sets the paging size of this virtual list.
|
void |
setSortKey(java.lang.String sortKey)
Sets the sort key
|
void |
setSortKey(java.lang.String[] sortKeys)
Sets the sort key
|
void setPageSize(int size)
size
- the page sizevoid setSortKey(java.lang.String sortKey) throws EBaseException
sortKey
- the attribute to sort byEBaseException
- failed to setvoid setSortKey(java.lang.String[] sortKeys) throws EBaseException
sortKeys
- the attributes to sort byEBaseException
- failed to setint getSize()
int getSizeBeforeJumpTo()
int getSizeAfterJumpTo()
int getCurrentIndex()
boolean getPage(int first)
first
- the index of the first entry of the page you want to fetchboolean getPage(java.lang.String text)
text
- the prefix of the first entry of the page you want to fetchjava.lang.Object getElementAt(int index)
index
- the index of the element to fetchjava.lang.Object getJumpToElementAt(int i)
i
- positionvoid processElements(int startidx, int endidx, IElementProcessor ep) throws EBaseException
startidx
- starting indexendidx
- ending indexep
- object to callEBaseException
- failed to process elementsint getSelectedIndex()
int getFirstIndex()