List of usage examples for com.google.gwt.core.client JavaScriptObject createObject
public static native JavaScriptObject createObject() ;
From source file:org.gwtnode.modules.aws.s3.data.GetObjectData.java
License:Apache License
/** * A map of metadata to store with the object in S3. *//*w ww . j a va 2s. co m*/ public final Map<String, JavaScriptObject> metadata() { JavaScriptObject metadata = metadata0(); if (metadata == null) metadata = JavaScriptObject.createObject(); return new JsonStringObjectMap<JavaScriptObject>(metadata); }
From source file:org.gwtnode.modules.aws.s3.data.RequestError.java
License:Apache License
public static RequestError create() { return JavaScriptObject.createObject().cast(); }
From source file:org.gwtnode.modules.aws.s3.params.BucketParams.java
License:Apache License
public static BucketParams create(String bucket) { BucketParams result = JavaScriptObject.createObject().cast(); result.bucket(bucket); return result; }
From source file:org.gwtnode.modules.cassandra.Options.java
License:Apache License
public static final Options create() { return JavaScriptObject.createObject().cast(); }
From source file:org.gwtnode.modules.cassandra.PoolOptions.java
License:Apache License
public static final PoolOptions create() { return JavaScriptObject.createObject().cast(); }
From source file:org.gwtnode.modules.helenus.Connection.java
License:Apache License
/** * Executes a CQL Query Against the DB.//from w w w. j a va2 s. c om * * @param query * A string representation of the query: 'select %s, %s from MyCf where key=%s' * @param args * An Array of arguments for the query * @param gzip * Whether use GZip for request or not * @param callback * The callback function for the results */ @GwtNodeFunction public final void cql(String query, JsArrayMixed args, boolean gzip, ResultEventHandler callback) { JavaScriptObject options = JavaScriptObject.createObject(); if (gzip) JsUtils.setProperty(options, "gzip", JsUtils.asJSOBoolean(true)); cql(query, args, options, callback != null ? callback.getNativeFunction() : null); }
From source file:org.gwtnode.modules.helenus.ConnectionOptions.java
License:Apache License
public static final ConnectionOptions create() { return JavaScriptObject.createObject().cast(); }
From source file:org.gwtnode.modules.helenus.GetOptions.java
License:Apache License
public static final GetOptions create() { return JavaScriptObject.createObject().<GetOptions>cast(); }
From source file:org.gwtnode.modules.helenus.IndexedQuery.java
License:Apache License
public static final IndexedQuery create() { return JavaScriptObject.createObject().<IndexedQuery>cast(); }
From source file:org.gwtnode.modules.helenus.ThriftOptions.java
License:Apache License
public static final ThriftOptions create() { return JavaScriptObject.createObject().cast(); }