Example usage for com.google.gwt.ajaxloader.client AjaxLoader init

List of usage examples for com.google.gwt.ajaxloader.client AjaxLoader init

Introduction

In this page you can find the example usage for com.google.gwt.ajaxloader.client AjaxLoader init.

Prototype

public static void init(String apiKey) 

Source Link

Document

Initialize the API with a supplied key value.

Usage

From source file:com.floreysoft.gwt.picker.client.utils.PickerLoader.java

License:Apache License

/**
 * Loads the picker api with the given version and options
 *
 * @param version The version to load//from   w  ww .j a  va2  s .c  om
 * @param runnable The callback
 * @param options The ajax-loader options
 */
public static void loadApi(String apiKey, String version, Runnable runnable,
        AjaxLoader.AjaxLoaderOptions options) {
    AjaxLoader.init(apiKey);
    AjaxLoader.loadApi(PICKER_API, version, runnable, options);
}

From source file:com.floreysoft.gwt.picker.client.utils.ShareLoader.java

License:Apache License

/**
 * Loads the picker api with the given version and options
 *
 * @param version The version to load/*from   w  ww .  j a v a  2  s  .  co  m*/
 * @param runnable The callback
 * @param options The ajax-loader options
 */
public static void loadApi(String apiKey, String version, Runnable runnable,
        AjaxLoader.AjaxLoaderOptions options) {
    AjaxLoader.init(apiKey);
    AjaxLoader.loadApi(DRIVE_SHARE_API, version, runnable, options);
}