Example usage for com.google.gwt.core.client JavaScriptObject subclass-usage

List of usage examples for com.google.gwt.core.client JavaScriptObject subclass-usage

Introduction

In this page you can find the example usage for com.google.gwt.core.client JavaScriptObject subclass-usage.

Usage

From source file com.google.gerrit.client.account.AccountCapabilities.java

/** Capabilities the caller has from {@code /accounts/self/capabilities}.  */
public class AccountCapabilities extends JavaScriptObject {
    public static void all(AsyncCallback<AccountCapabilities> cb, String... filter) {
        new RestApi("/accounts/self/capabilities").addParameter("q", filter).get(cb);
    }

From source file com.google.gerrit.client.account.AccountInfo.java

public class AccountInfo extends JavaScriptObject {
    public final native int _account_id() /*-{ return this._account_id || 0; }-*/;

    public final native String name() /*-{ return this.name; }-*/;

    public final native String email() /*-{ return this.email; }-*/;

From source file com.google.gerrit.client.account.DiffPreferences.java

public class DiffPreferences extends JavaScriptObject {
    public static DiffPreferences create(DiffPreferencesInfo in) {
        if (in == null) {
            in = DiffPreferencesInfo.defaults();
        }
        DiffPreferences p = createObject().cast();

From source file com.google.gerrit.client.account.EditPreferences.java

public class EditPreferences extends JavaScriptObject {
    public static EditPreferences create(EditPreferencesInfo in) {
        EditPreferences p = createObject().cast();
        p.tabSize(in.tabSize);
        p.lineLength(in.lineLength);
        p.indentUnit(in.indentUnit);

From source file com.google.gerrit.client.account.EmailInfo.java

public class EmailInfo extends JavaScriptObject {
    public final native String email() /*-{ return this.email; }-*/;

    public final native boolean isPreferred() /*-{ return this['preferred'] ? true : false; }-*/;

    public final native boolean isConfirmationPending() /*-{ return this['pending_confirmation'] ? true : false; }-*/;

From source file com.google.gerrit.client.account.ExternalIdInfo.java

public class ExternalIdInfo extends JavaScriptObject implements Comparable<ExternalIdInfo> {
    /**
     * Scheme used for {@link AuthType#LDAP}, {@link AuthType#CLIENT_SSL_CERT_LDAP}, {@link
     * AuthType#HTTP_LDAP}, and {@link AuthType#LDAP_BIND} usernames.
     *
     * <p>The name {@code gerrit:} was a very poor choice.

From source file com.google.gerrit.client.account.Preferences.java

public class Preferences extends JavaScriptObject {
    public static Preferences create(AccountGeneralPreferences in, List<TopMenuItem> myMenus) {
        Preferences p = createObject().cast();
        if (in == null) {
            in = AccountGeneralPreferences.createDefault();
        }

From source file com.google.gerrit.client.account.ProjectWatchInfo.java

public class ProjectWatchInfo extends JavaScriptObject {

    public enum Type {
        NEW_CHANGES, NEW_PATCHSETS, ALL_COMMENTS, SUBMITTED_CHANGES, ABANDONED_CHANGES
    }

From source file com.google.gerrit.client.account.SshKeyInfo.java

public class SshKeyInfo extends JavaScriptObject {
    public final native int seq() /*-{ return this.seq || 0; }-*/;

    public final native String sshPublicKey() /*-{ return this.ssh_public_key; }-*/;

    public final native String encodedKey() /*-{ return this.encoded_key; }-*/;

From source file com.google.gerrit.client.actions.ActionInfo.java

public class ActionInfo extends JavaScriptObject {

    public final native String id() /*-{ return this.id; }-*/;

    public final native String method() /*-{ return this.method; }-*/;