org.cruxframework.crux.widgets.client.rss.feed
Class Loader

java.lang.Object
  extended by org.cruxframework.crux.widgets.client.rss.feed.Loader

public final class Loader
extends Object

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

apiReady

public static boolean apiReady()
Indicates whether or not the external JavaScript for the Google AJAX Feed API has been installed into the JSVM.

Returns:
true iff the API is ready for use.

init

public static void init(String apiKey,
                        Loader.LoaderCallback apiCallback)
Initialize the Google AJAX Feed API.

Parameters:
apiKey - The developer's API key
apiCallback - the callback to invoke when the Loader has finished


Copyright © 2015. All rights reserved.