List of usage examples for com.google.gwt.core.client JavaScriptObject createObject
public static native JavaScriptObject createObject() ;
From source file:org.turbogwt.core.collections.JsMapBoolean.java
License:Apache License
public static JsMapBoolean create() { return JavaScriptObject.createObject().cast(); }
From source file:org.turbogwt.core.collections.JsMapInteger.java
License:Apache License
public static JsMapInteger create() { return JavaScriptObject.createObject().cast(); }
From source file:org.turbogwt.core.collections.JsMapNumber.java
License:Apache License
public static JsMapNumber create() { return JavaScriptObject.createObject().cast(); }
From source file:org.turbogwt.core.collections.JsMapString.java
License:Apache License
public static JsMapString create() { return JavaScriptObject.createObject().cast(); }
From source file:org.waveprotocol.wave.client.gadget.StateMap.java
License:Apache License
/** * Creates gadget state object. */ public static StateMap create() { return JavaScriptObject.createObject().cast(); }
From source file:org.waveprotocol.wave.client.gadget.StateMap.java
License:Apache License
/** * Creates gadget state object from a String-to-String map. *//*w ww . j av a 2 s . c o m*/ public static StateMap createFromStringMap(ReadableStringMap<String> map) { final StateMap stateMap = JavaScriptObject.createObject().cast(); map.each(new ProcV<String>() { @Override public void apply(String key, String value) { stateMap.put(key, value); } }); return stateMap; }
From source file:org.waveprotocol.wave.client.gadget.StateMap.java
License:Apache License
/** * Convert this into a serializable JavaScriptObject. Eliminates the ":" * key prefixes./*from w w w . ja v a 2s . com*/ * * @return The JavaScriptObject of the valid keys. */ public final JavaScriptObject asJavaScriptObject() { final JavaScriptObject jso = JavaScriptObject.createObject(); each(new Each() { @Override public void apply(String key, String value) { putKeyValue(jso, key, value); } }); return jso; }
From source file:org.waveprotocol.wave.communication.gwt.JsonMessage.java
License:Apache License
/** * @return a new empty JsonMessage.//from w w w . j a v a2 s . c o m */ public static JsonMessage createJsonMessage() { JsonMessage instance = JavaScriptObject.createObject().cast(); registerNativeJsonMessageToString(instance); return instance; }
From source file:org.xwiki.gwt.user.client.Cache.java
License:Open Source License
/** * Clears the cache and optionally disables it. * //from w ww . j ava 2s . co m * @param disable {@code true} to disable the cache, {@code false} to enable the cache */ public void clear(boolean disable) { if (disable) { cacheHolder.remove(CACHE_PROPERTY); } else { cacheHolder.set(CACHE_PROPERTY, JavaScriptObject.createObject()); } }
From source file:playn.html.HtmlJson.java
License:Apache License
@Override public Object createObject() { return (Json.Object) JavaScriptObject.createObject().cast(); }