goog.ui.AutoComplete.RichRemoteArrayMatcher
Classgoog.ui.AutoComplete.RichRemoteArrayMatcher
> goog.ui.ac.RemoteArrayMatcher
> goog.Disposable
goog.ui.AutoComplete.RichRemoteArrayMatcher
[deprecated]Deprecated. Use {@link goog.ui.ac.RichRemoteArrayMatcher} instead.
This is a stub for backward compatibility. For actual documentation, please see {@link goog.ui.ac.RichRemoteArrayMatcher}.
url
{string
}
opt_noSimilar
{boolean
=}
.addOnDisposeCallback(callback, opt_scope)
Inherited from goog.Disposable
.
Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added.
callback
{!Function
}
opt_scope
{Object
=}
.buildUrl(uri, token, maxMatches, useSimilar, opt_fullString)
[protected]Inherited from goog.ui.ac.RemoteArrayMatcher
.
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.
uri
{string
}
token
{string
}
maxMatches
{number
}
useSimilar
{boolean
}
opt_fullString
{string
=}
string
}
.creationStack
{string
}Inherited from goog.Disposable
.
If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.
.dispose()
Inherited from goog.Disposable
.
Disposes of the object. If the object hasn't already been disposed of, calls {@link #disposeInternal}. Classes that extend {@code goog.Disposable} should override {@link #disposeInternal} in order to delete references to COM objects, DOM nodes, and other disposable objects. Reentrant.
void
}
.disposeInternal()
[protected]Inherited from goog.ui.ac.RemoteArrayMatcher
.
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. ... };
.getDisposed
[deprecated]Deprecated. Use {@link #isDisposed} instead.
Inherited from goog.Disposable
.
boolean
}
.isDisposed()
Inherited from goog.Disposable
.
boolean
}
.parseResponseText(responseText)
[protected]Inherited from goog.ui.ac.RemoteArrayMatcher
.
Parses and retrieves the array of suggestions from XHR response. Override this if the response is not a simple JSON array.
responseText
{string
}
Array
.<string
>}
.registerDisposable(disposable)
Inherited from goog.Disposable
.
Associates a disposable object with this object so that they will be disposed together.
disposable
{goog.disposable.IDisposable
}
.requestMatchingRows(token, maxMatches, matchHandler, opt_fullString)
Inherited from goog.ui.ac.RemoteArrayMatcher
.
Retrieve a set of matching rows from the server via ajax.
token
{string
}
maxMatches
{number
}
matchHandler
{Function
}
opt_fullString
{string
=}
.setContent(content)
Inherited from goog.ui.ac.RemoteArrayMatcher
.
Set the post data.
content
{string
}
.setHeaders(headers)
Inherited from goog.ui.ac.RemoteArrayMatcher
.
Set the HTTP headers.
headers
{Object
|goog.structs.Map
}
.setMethod(method)
Inherited from goog.ui.ac.RemoteArrayMatcher
.
Set the send method ("GET", "POST").
method
{string
}
.setTimeoutInterval(interval)
Inherited from goog.ui.ac.RemoteArrayMatcher
.
Set the timeout interval.
interval
{number
}
.shouldRequestMatches(uri, token, maxMatches, useSimilar, opt_fullString)
[protected]Inherited from goog.ui.ac.RemoteArrayMatcher
.
Returns whether the suggestions should be updated? Override this to prevent updates eg - when token is empty.
uri
{string
}
token
{string
}
maxMatches
{number
}
useSimilar
{boolean
}
opt_fullString
{string
=}
boolean
}
.xhrCallback(token, matchHandler, event)
Inherited from goog.ui.ac.RemoteArrayMatcher
.
Handles the XHR response.
token
{string
}
matchHandler
{Function
}
event
{goog.events.Event
}