|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cruxframework.crux.widgets.client.rss.feed.Loader
public final class Loader
This class must be invoked before any other class in the Google AJAX Feed API is used. It is responsible for downloading and initializing the API. Because the AJAX Feed API is external to the GWT application, the API may not be immediately available, so a callback is used to notify the GWT code that the API is ready for use.
| Nested Class Summary | |
|---|---|
static interface |
Loader.LoaderCallback
A callback interface used to signal state changes in the load process. |
| Method Summary | |
|---|---|
static boolean |
apiReady()
Indicates whether or not the external JavaScript for the Google AJAX Feed API has been installed into the JSVM. |
static void |
init(String apiKey,
Loader.LoaderCallback apiCallback)
Initialize the Google AJAX Feed API. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean apiReady()
true iff the API is ready for use.
public static void init(String apiKey,
Loader.LoaderCallback apiCallback)
apiKey - The developer's API keyapiCallback - the callback to invoke when the Loader has finished
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||