WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

@mozilla.org/autocomplete/mdb-result;1

This component implements the following interfaces:

Constants

Possible values for the searchResult attribute
PRUint16 nsIAutoCompleteResult.RESULT_IGNORED = 1
PRUint16 nsIAutoCompleteResult.RESULT_FAILURE = 2
PRUint16 nsIAutoCompleteResult.RESULT_NOMATCH = 3
PRUint16 nsIAutoCompleteResult.RESULT_SUCCESS = 4
PRUint16 nsIAutoCompleteResult.RESULT_NOMATCH_ONGOING = 5
PRUint16 nsIAutoCompleteResult.RESULT_SUCCESS_ONGOING = 6

Properties

readonly PRInt32 nsIAutoCompleteResult.defaultIndex

Index of the default item that should be entered if none is selected

readonly AString nsIAutoCompleteResult.errorDescription

A string describing the cause of a search failure

readonly PRUint32 nsIAutoCompleteResult.matchCount

The number of matches

readonly PRUint16 nsIAutoCompleteResult.searchResult

The result of the search

readonly AString nsIAutoCompleteResult.searchString

The original search string

Methods

InterfaceMethod
nsIAutoCompleteResult AString getCommentAt ( PRInt32 index )
nsIAutoCompleteResult AString getImageAt ( PRInt32 index )
nsIAutoCompleteResult AString getStyleAt ( PRInt32 index )
nsIAutoCompleteResult AString getValueAt ( PRInt32 index )
nsIAutoCompleteResult void removeValueAt ( PRInt32 rowIndex , PRBool removeFromDb )

Reference documentation is generated from Mozilla's source.