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:ar.com.macsgroup.graphics.gwtraphael.client.animation.Animation.java

License:Open Source License

public static <T extends RaphaelBaseElement> T animate(T element, AnimatedAttribute[] attributes, int delay,
        Easing easingType, AnimationFinishCallback callback) {
    // fresh object
    JavaScriptObject objAttributes = JavaScriptObject.createObject();

    for (Attribute attribute : attributes) {
        setProperty(objAttributes, attribute.getName(), attribute.getValue());
    }/*w  ww. j  a va  2s  . c om*/

    String easingTypeString = easingType != null ? easingType.getRapahelString() : null;

    doAnimation(element, objAttributes, delay, easingTypeString, callback);

    return element;
}

From source file:ar.com.macsgroup.graphics.gwtraphael.client.attributes.Attributes.java

License:Open Source License

public static <T extends RaphaelBaseElement> T attr(T element, Attribute... attributes) {

    // fresh object
    JavaScriptObject obj = JavaScriptObject.createObject();

    for (Attribute attribute : attributes) {
        setProperty(obj, attribute.getName(), attribute.getValue());
    }// w w  w  .  j  a  v  a  2 s .c  o m

    return attr(element, obj);
}

From source file:cc.kune.embed.client.conf.EmbedConfiguration.java

License:GNU Affero Public License

public static void setDefValues() {
    conf = (EmbedConfJso) JavaScriptObject.createObject().cast();
}

From source file:com.ait.ext4j.client.core.Margins.java

License:Apache License

/**
 * Create a new Margins instance.// w  w w . jav a  2  s.c o m
 * 
 * @param top
 *            the top margin
 * @param left
 *            the left margin
 * @param right
 *            the right margin
 * @param bottom
 *            the bottom margin
 */
public Margins(int top, int left, int right, int bottom) {
    this.top = top;
    this.left = left;
    this.right = right;
    this.bottom = bottom;
    jsObj = JavaScriptObject.createObject();
    JsoHelper.setAttribute(jsObj, "top", top);
    JsoHelper.setAttribute(jsObj, "left", left);
    JsoHelper.setAttribute(jsObj, "right", right);
    JsoHelper.setAttribute(jsObj, "bottom", bottom);
}

From source file:com.ait.lienzo.client.core.image.filter.ImageDataFilterCommonOps.java

License:Open Source License

public static final ImageDataFilterCommonOps make() {
    ImageDataFilterCommonOps self = JavaScriptObject.createObject().cast();

    self.initialize();/*  www.j av a 2  s  . c o  m*/

    return self;
}

From source file:com.ait.lienzo.client.core.types.NFastStringMapMixedJSO.java

License:Open Source License

public static final NFastStringMapMixedJSO make() {
    return JavaScriptObject.createObject().cast();
}

From source file:com.ait.tooling.nativetools.client.NObjectBaseJSO.java

License:Open Source License

public static final <T extends NObjectBaseJSO<T>> T createNObjectBaseJSO() {
    return JavaScriptObject.createObject().cast();
}

From source file:com.ait.toolkit.clientio.uploader.client.Uploader.java

License:Apache License

/**
 * Returns the overall general statistics being tracked by the Uploader component, or null
 * if the widget has not yet been added to the DOM.
 *
 * @return Stats//from   w ww.j a  v  a 2 s  .c  o  m
 */
public Stats getStats() {
    if (swfUpload != null) {
        return nativeGetStats(swfUpload);
    } else if (stats == null) {
        stats = (Stats) JavaScriptObject.createObject();
    }
    return stats;
}

From source file:com.ait.toolkit.node.core.JsonStringObjectMap.java

License:Open Source License

public JsonStringObjectMap() {
    this(JavaScriptObject.createObject());
}

From source file:com.ait.toolkit.node.core.node.crypto.CredentialsDetails.java

License:Open Source License

public static CredentialsDetails create() {
    return (CredentialsDetails) JavaScriptObject.createObject();
}