List of usage examples for com.google.gwt.core.client JavaScriptObject subclass-usage
From source file com.google.gerrit.client.RangeInfo.java
public class RangeInfo extends JavaScriptObject { public final native int start() /*-{ return this.start; }-*/; public final native int end() /*-{ return this.end; }-*/; protected RangeInfo() {
From source file com.google.gerrit.client.rpc.NativeList.java
/** A read-only list of native JavaScript objects stored in a JSON array. */ public class NativeList<T extends JavaScriptObject> extends JavaScriptObject { protected NativeList() { } public final List<T> asList() {
From source file com.google.gerrit.client.rpc.NativeMap.java
/** A map of native JSON objects, keyed by a string. */ public class NativeMap<T extends JavaScriptObject> extends JavaScriptObject { /** * Loop through the result map's entries and copy the key strings into the * "name" property of the corresponding child object. This only runs on the * top level map of the result, and requires the children to be JSON objects
From source file com.google.gerrit.client.rpc.NativeString.java
/** Wraps a String that was returned from a JSON API. */ public final class NativeString extends JavaScriptObject { static NativeString wrap(String value) { NativeString ns = (NativeString) createObject(); ns.set(value); return ns;
From source file com.google.gerrit.client.VoidResult.java
public final class VoidResult extends JavaScriptObject { protected VoidResult() { } public static VoidResult create() { return createObject().cast();
From source file com.google.gerrit.client.WebLinkInfo.java
public class WebLinkInfo extends JavaScriptObject { public final native String name() /*-{ return this.name; }-*/; public final native String imageUrl() /*-{ return this.image_url; }-*/;
From source file com.google.gerrit.plugin.client.Plugin.java
/** * Wrapper around the plugin instance exposed by Gerrit. * * <p>Listeners for events generated by the main UI must be registered through this instance. */ public final class Plugin extends JavaScriptObject {
From source file com.google.gerrit.plugin.client.rpc.NativeString.java
/** Wraps a String that was returned from a JSON API. */ public class NativeString extends JavaScriptObject { private static final JavaScriptObject TYPE = init(); private static final native JavaScriptObject init() /*-{ return $wnd.Gerrit.JsonString }-*/;
From source file com.google.gerrit.plugin.client.rpc.NoContent.java
public class NoContent extends JavaScriptObject { protected NoContent() { } }
From source file com.google.gwt.gadgets.sample.traveler.client.Location.java
/** * Location class used by client-side part of the application. Represent a * single geographical location with it's description. */ public class Location extends JavaScriptObject { public static Location newInstance() {