Home

# Class goog.ui.AutoComplete.RemoteArrayMatcher

An array matcher that requests matches via ajax.

extends goog.Disposable

Instance Method Summary
| `buildUrl(string uri, string token, number maxMatches, boolean useSimilar, string= opt_fullString) ⇒ ?string` Builds a complete GET-style URL, given the base URI and autocomplete related parameter values. Override this to build any customized lookup URLs. Can be used to change request method and any post content as well.

`disposeInternal()`

Deletes or nulls out any references to COM objects, DOM nodes, or other disposable objects. Classes that extend {@code goog.Disposable} should override this method. Not reentrant. To avoid calling it twice, it must only be called from the subclass' {@code disposeInternal} method. Everywhere else the public {@code dispose} method must be used. For example:

    mypackage.MyClass = function() {
    goog.base(this);
    // Constructor logic specific to MyClass.
    ...
    };
    goog.inherits(mypackage.MyClass, goog.Disposable);

    mypackage.MyClass.prototype.disposeInternal = function() {
    goog.base(this, 'disposeInternal');
    // Dispose logic specific to MyClass.
    ...
    };

| `parseResponseText(string responseText) ⇒ ?Array.<string>` Parses and retrieves the array of suggestions from XHR response. Override this if the response is not a simple JSON array.
| `requestMatchingRows(string token, number maxMatches, ?Function matchHandler, string= opt_fullString)` Retrieve a set of matching rows from the server via ajax.
| `setContent(string content)` Set the post data.
| `setHeaders((Object|goog.structs.Map|null) headers)` Set the HTTP headers.
| `setMethod(string method)` Set the send method ("GET", "POST").
| `setTimeoutInterval(number interval)` Set the timeout interval.
| `shouldRequestMatches(string uri, string token, number maxMatches, boolean useSimilar, string= opt_fullString) ⇒ boolean` Returns whether the suggestions should be updated? Override this to prevent updates eg - when token is empty.
| `xhrCallback(string token, ?Function matchHandler, ?goog.events.Event event)` Handles the XHR response.