|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDBVirtualList
A interface represents a virtual list of search results. Note that this class must be used with DS4.0.
Method Summary | |
---|---|
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 |
Method Detail |
---|
void setPageSize(int size)
size
- the page sizevoid setSortKey(java.lang.String sortKey) throws EBaseException
sortKey
- the attribute to sort by
EBaseException
- failed to setvoid setSortKey(java.lang.String[] sortKeys) throws EBaseException
sortKeys
- the attributes to sort by
EBaseException
- 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
- position
void processElements(int startidx, int endidx, IElementProcessor ep) throws EBaseException
startidx
- starting indexendidx
- ending indexep
- object to call
EBaseException
- failed to process elementsint getSelectedIndex()
int getFirstIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |