public abstract class OnActionListener<T> extends java.lang.Object implements OnThinkingListetener
| Constructor and Description |
|---|
OnActionListener() |
| Modifier and Type | Method and Description |
|---|---|
Cursor<T> |
getCursor()
Get the cursor that actually does the 'getMore()' action.
|
java.lang.reflect.Type |
getGenericType() |
void |
getNext()
Ask for the next page results in async way.
|
int |
getPageNum()
Get the last page number that was retrieved.
|
void |
getPrev()
Ask for the prev page results in async way.
|
boolean |
hasNext()
Return
True if there is another next page with more results. |
boolean |
hasPrev()
Return
True if there is another previous page with more
results. |
void |
onComplete(T response) |
void |
onException(java.lang.Throwable throwable) |
void |
onFail(java.lang.String reason) |
void |
onThinking() |
void |
setCursor(Cursor<T> cursor) |
public void onComplete(T response)
public void onException(java.lang.Throwable throwable)
onException in interface OnErrorListenerpublic void onFail(java.lang.String reason)
onFail in interface OnErrorListenerpublic void onThinking()
onThinking in interface OnThinkingListetenerpublic boolean hasNext()
True if there is another next page with more results.
You can iterate to the next page and get more results by calling to
getNext() method.True if more results exist.public boolean hasPrev()
True if there is another previous page with more
results. You can iterate to the next page and get more results by calling
to getPrev() method.True if more results exist.public void getNext()
onComplete(Object) method will be invoked again.public void getPrev()
onComplete(Object) method will be invoked again.public Cursor<T> getCursor()
Cursor for iteration over pages of response.public int getPageNum()
public java.lang.reflect.Type getGenericType()