Linux Mac OSX Windows

Implemented by

 This class implements nsIAutoCompleteResult and provides simple methods
 for setting the value and result items. It can be used whenever some basic
 auto complete results are needed that can be pre-generated and filled into
 an array.
[scriptable, uuid(cc79f293-7114-4287-870b-d28aa61aa7df)]
interface nsIAutoCompleteSimpleResult : nsIAutoCompleteResult

Methods

 Appends a result item consisting of the given value and comment. This is
 how you add results.
void appendMatch(in AString aValue, in AString aComment)
 A writer for the readonly attribute 'defaultIndex' which should contain
 the index of the list that will be selected by default (normally 0).
void setDefaultIndex(in long aDefaultIndex)
 A writer for the readonly attribute 'errorDescription'.
void setErrorDescription(in AString aErrorDescription)
 A writer for the readonly attribute 'searchResult' which should contain
 one of the constants nsIAutoCompleteResult.RESULT_* indicating the success
 of the search.
void setSearchResult(in unsigned short aSearchResult)
 A writer for the readonly attribute 'searchString' which should contain
 the string that the user typed.
void setSearchString(in AString aSearchString)