goog.ui.ac.RichRemoteArrayMatcher
Provided By | |
---|---|
Extends | |
All Implemented Interfaces |
An array matcher that requests rich matches via ajax and converts them into rich rows.
new RichRemoteArrayMatcher( url, opt_noSimilar )
Parameters |
|
---|
Instance Methods
this.addOnDisposeCallback<T>( callback, opt_scope ) → void
void
Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added. If a callback is added to an already disposed Disposable, it will be called immediately.
Defined by | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
this.buildUrl( uri, token, maxMatches, useSimilar, opt_fullString ) → (string|null)
(string|null)
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.
Defined by | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||||||||||||
Returns |
|
this.dispose() → ?
?
Disposes of the object and its resources.
Overrides | ||
---|---|---|
Specified by | ||
Parameters | None. | |
Returns |
|
this.disposeInternal() → void
void
Performs appropriate cleanup. See description of goog.disposable.IDisposable
for examples. Classes that extend goog.Disposable
should override this
method. Not reentrant. To avoid calling it twice, it must only be called from
the subclass' disposeInternal
method. Everywhere else the public dispose
method must be used. For example:
mypackage.MyClass = function() { mypackage.MyClass.base(this, 'constructor'); // Constructor logic specific to MyClass. ... }; goog.inherits(mypackage.MyClass, goog.Disposable); mypackage.MyClass.prototype.disposeInternal = function() { // Dispose logic specific to MyClass. ... // Call superclass's disposeInternal at the end of the subclass's, like // in C++, to avoid hard-to-catch issues. mypackage.MyClass.base(this, 'disposeInternal'); };
Defined by | |
---|---|
Overrides | |
Parameters | None. |
this.getDisposed() → boolean
boolean
warning Deprecated | Use |
---|
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.isDisposed() → boolean
boolean
Overrides | |||
---|---|---|---|
Specified by | |||
Parameters | None. | ||
Returns |
|
this.registerDisposable( disposable ) → void
void
Associates a disposable object with this object so that they will be disposed together.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.requestMatchingRows( token, maxMatches, matchHandler ) → void
void
Retrieve a set of matching rows from the server via ajax and convert them into rich rows.
Overrides | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
this.setContent( content ) → void
void
Set the post data.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setHeaders( headers ) → void
void
Set the HTTP headers.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setMethod( method ) → void
void
Set the send method ("GET", "POST").
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setRowBuilder( rowBuilder ) → void
void
Sets the function building the rows.
Parameters |
|
---|
this.setRowFilter( rowFilter ) → void
void
Set the filter that is called before the array matches are returned.
Parameters |
|
---|
this.setTimeoutInterval( interval ) → void
void
Set the timeout interval.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.shouldRequestMatches( uri, token, maxMatches, useSimilar, opt_fullString ) → boolean
boolean
Returns whether the suggestions should be updated? Override this to prevent updates eg - when token is empty.
Defined by | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||||||||||||
Returns |
|
this.xhrCallback( token, matchHandler, event ) → void
void
Handles the XHR response.
Defined by | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
Instance Properties
this.creationStack → (string|undefined)
(string|undefined)
If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.
Static Properties
No information.