Example usage for com.google.gwt.core.client JavaScriptObject createObject

List of usage examples for com.google.gwt.core.client JavaScriptObject createObject

Introduction

In this page you can find the example usage for com.google.gwt.core.client JavaScriptObject createObject.

Prototype

public static native JavaScriptObject createObject() ;

Source Link

Document

Returns a new object.

Usage

From source file:com.googlecode.gflot.client.options.BackgroundOptions.java

License:Open Source License

/**
 * Creates a {@link BackgroundOptions}// w  w  w  .j  a  va 2s . co m
 */
public static final BackgroundOptions create() {
    return JavaScriptObject.createObject().cast();
}

From source file:com.googlecode.gflot.client.options.BarSeriesOptions.java

License:Open Source License

/**
 * Creates a {@link BarSeriesOptions}/*from  w ww.ja  va2 s.  c o  m*/
 */
public static final BarSeriesOptions create() {
    return JavaScriptObject.createObject().cast();
}

From source file:com.googlecode.gflot.client.options.CategoriesAxisOptions.java

License:Open Source License

/**
 * Creates a {@link CategoriesAxisOptions}
 *///from  w w  w. j  a va 2 s  . c  o  m
public static final CategoriesAxisOptions create() {
    CategoriesAxisOptions axis = JavaScriptObject.createObject().cast();
    axis.put(MODE_KEY, CATEGORIES_MODE_KEY);
    return axis;
}

From source file:com.googlecode.gflot.client.options.CrosshairOptions.java

License:Open Source License

/**
 * Creates a {@link CrosshairOptions}//from  w  w w  .  jav a  2s. c o m
 */
public static final CrosshairOptions create() {
    return JavaScriptObject.createObject().cast();
}

From source file:com.googlecode.gflot.client.options.errorbars.ErrorBarsOptions.java

License:Open Source License

/**
 * Creates a {@link ErrorBarsOptions}/*from   w ww .jav  a 2 s  . c o m*/
 */
public static final ErrorBarsOptions create() {
    return JavaScriptObject.createObject().cast();
}

From source file:com.googlecode.gflot.client.options.FontOptions.java

License:Open Source License

/** Creates a {@link com.googlecode.gflot.client.options.FontOptions} */
public static final FontOptions create() {
    return JavaScriptObject.createObject().cast();
}

From source file:com.googlecode.gflot.client.options.GlobalSeriesOptions.java

License:Open Source License

/**
 * Creates a {@link GlobalSeriesOptions}
 *//*from   w w  w  . java  2 s .c o  m*/
public static final GlobalSeriesOptions create() {
    return JavaScriptObject.createObject().cast();
}

From source file:com.googlecode.gflot.client.options.GridOptions.java

License:Open Source License

/**
 * Creates a {@link GridOptions}
 */
public static final GridOptions create() {
    return JavaScriptObject.createObject().cast();
}

From source file:com.googlecode.gflot.client.options.GridOptions.java

License:Open Source License

/**
 * Set the background color inside the grid area as a gradient.
 *//*from   w ww. j  ava 2 s  .c o m*/
public final GridOptions setBackgroundColor(String fromColor, String toColor) {
    JsArrayString array = getBackgroundColorAsArray();
    if (null == array) {
        JsonObject jsonObject = JavaScriptObject.createObject().cast();
        array = JavaScriptObject.createArray().cast();
        jsonObject.put(BACKGROUND_COLORS_KEY, array);
        put(BACKGROUND_COLOR_KEY, jsonObject);
    }
    array.set(0, fromColor);
    array.set(1, toColor);
    return this;
}

From source file:com.googlecode.gflot.client.options.ImageSeriesOptions.java

License:Open Source License

/**
 * Creates a {@link ImageSeriesOptions}//from  w  w  w . j a v  a 2 s .  com
 */
public static final ImageSeriesOptions create() {
    return JavaScriptObject.createObject().cast();
}