|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.gadgets.client.osapi.OsapiCollection<T>
T - Type of objects in the collection.public class OsapiCollection<T extends com.google.gwt.core.client.JavaScriptObject>
A class representing OpenSocial collection.
| Constructor Summary | |
|---|---|
protected |
OsapiCollection()
Required by JavaScriptObject policy. |
| Method Summary | |
|---|---|
int |
getItemsPerPage()
Returns the number of results returned per page in this response. |
com.google.gwt.core.client.JsArray<T> |
getList()
Returns a JavaScript array with collection's content. |
int |
getStartIndex()
Returns the index of the first result returned in this response, relative to the starting index of all results that would be returned if no startIndex had been requested. |
int |
getTotalResults()
Returns the total number of results that would be returned if there were no start index or count specified. |
java.lang.Iterable<T> |
iterable()
Returns Iterable for use with for-each loops. |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected OsapiCollection()
JavaScriptObject policy.
| Method Detail |
|---|
public final int getItemsPerPage()
CollectionRequestBuilder.setCount(int) method, but MAY be less if
the Service Provider is unwilling to return as many results per page as
requested, or if there are less than the requested number of results left
to return when starting at the current start index. This field MUST be
present if and only if a value for count is specified in the request.
public final com.google.gwt.core.client.JsArray<T> getList()
public final int getStartIndex()
CollectionRequestBuilder.setStartIndex(int) method, or 0
if no specific startIndex was requested.
public final int getTotalResults()
public final java.lang.Iterable<T> iterable()
Iterable for use with for-each loops.
Iterable for use with for-each loops.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||