List of usage examples for com.google.gwt.core.client JavaScriptObject createObject
public static native JavaScriptObject createObject() ;
From source file:org.cruxframework.crux.core.client.db.indexeddb.IDBObjectStoreParameters.java
License:Apache License
public static IDBObjectStoreParameters create() { IDBObjectStoreParameters res = JavaScriptObject.createObject().cast(); res.setAutoIncrement(false); return res; }
From source file:org.cruxframework.crux.core.client.db.indexeddb.IDBObjectStoreParameters.java
License:Apache License
public static IDBObjectStoreParameters create(String keyPath, boolean autoIncrement) { IDBObjectStoreParameters res = JavaScriptObject.createObject().cast(); res.setKeyPath(keyPath);// w ww. ja va 2s . co m res.setAutoIncrement(autoIncrement); return res; }
From source file:org.cruxframework.crux.core.client.db.indexeddb.IDBObjectStoreParameters.java
License:Apache License
public static IDBObjectStoreParameters create(String[] keyPath, boolean autoIncrement) { IDBObjectStoreParameters res = JavaScriptObject.createObject().cast(); res.setKeyPath(keyPath);/*from w w w . j a v a2s. c o m*/ res.setAutoIncrement(autoIncrement); return res; }
From source file:org.cruxframework.crux.plugin.gadget.client.features.osapi.albums.GetAlbumsRequestBuilder.java
License:Apache License
/** * Returns new instance of {@link GetAlbumsRequestBuilder}. * * @return New instance of {@link GetAlbumsRequestBuilder}. *//*from w ww . ja va 2 s .co m*/ static GetAlbumsRequestBuilder newInstance() { return JavaScriptObject.createObject().cast(); }
From source file:org.cruxframework.crux.plugin.gadget.client.features.osapi.mediaitems.GetMediaItemsRequestBuilder.java
License:Apache License
/** * Returns new instance of {@link GetMediaItemsRequestBuilder}. * * @return New instance of {@link GetMediaItemsRequestBuilder}. *///from w ww. j a v a 2s . com static GetMediaItemsRequestBuilder newInstance() { return JavaScriptObject.createObject().cast(); }
From source file:org.cruxframework.crux.plugin.gadget.client.features.osapi.people.GetPeopleRequestBuilder.java
License:Apache License
/** * Returns new instance of {@link GetPeopleRequestBuilder}. * //from w w w .j a v a2 s. c om * @return New instance of {@link GetPeopleRequestBuilder}. */ static GetPeopleRequestBuilder newInstance() { return JavaScriptObject.createObject().cast(); }
From source file:org.cruxframework.crux.plugin.gadget.client.features.osapi.people.GetPersonRequestBuilder.java
License:Apache License
/** * Returns new instance of {@link GetPersonRequestBuilder}. * // w w w. ja v a 2s.c o m * @return New instance of {@link GetPersonRequestBuilder}. */ static GetPersonRequestBuilder newInstance() { return JavaScriptObject.createObject().cast(); }
From source file:org.cruxframework.crux.plugin.google.gtm.client.GoogleTagManager.java
License:Apache License
/** * Push an event to the GTM dataLayer//from ww w .j av a 2s . c o m * @param eventName event name */ public static void pushEvent(String eventName) { assert (initialized) : "Google Tag Manager API was not initialized. Call init(containerID) method first," + " or configure GoogleTagManager EntryPoint on your .gwt.xml file"; JavaScriptObject params = JavaScriptObject.createObject(); JsUtils.writePropertyValue(params, "event", eventName); pushNative(params); }
From source file:org.cruxframework.crux.plugin.google.gtm.client.GoogleTagManager.java
License:Apache License
/** * Push a variable to the GTM dataLayer//from w w w . j av a 2s .co m * @param variable variable name * @param value new value for the given variable */ public static void pushVariable(String variable, String value) { assert (initialized) : "Google Tag Manager API was not initialized. Call init(containerID) method first," + " or configure GoogleTagManager EntryPoint on your .gwt.xml file"; JavaScriptObject params = JavaScriptObject.createObject(); JsUtils.writePropertyValue(params, variable, value); pushNative(params); }
From source file:org.cruxframework.crux.plugin.google.gtm.client.GoogleTagManager.java
License:Apache License
public static void pushVariables(Variable... variables) { assert (initialized) : "Google Tag Manager API was not initialized. Call init(containerID) method first," + " or configure GoogleTagManager EntryPoint on your .gwt.xml file"; JavaScriptObject params = JavaScriptObject.createObject(); for (Variable variable : variables) { JsUtils.writePropertyValue(params, variable.getName(), variable.getValue()); }//from w w w . ja v a2 s.c o m pushNative(params); }