Linux Mac OSX Windows

Implemented by


  
[scriptable, uuid(cf2aca0c-4fb1-42e4-8a54-23e832cb2a98)]
interface nsIAutoCompleteController : nsISupports

Constants


        
const unsigned short STATUS_NONE = 1

        
const unsigned short STATUS_SEARCHING = 2

        
const unsigned short STATUS_COMPLETE_NO_MATCH = 3

        
const unsigned short STATUS_COMPLETE_MATCH = 4

        
const unsigned short KEY_UP = 1

        
const unsigned short KEY_DOWN = 2

        
const unsigned short KEY_LEFT = 3

        
const unsigned short KEY_RIGHT = 4

        
const unsigned short KEY_PAGE_UP = 5

        
const unsigned short KEY_PAGE_DOWN = 6

        
const unsigned short KEY_HOME = 7

        
const unsigned short KEY_END = 8

Attributes


        
attribute nsIAutoCompleteInput input

        
readonly attribute unsigned long matchCount

        
readonly attribute unsigned short searchStatus

Methods


        
AString getCommentAt(in long index)

        
AString getStyleAt(in long index)

        
AString getValueAt(in long index)

        
boolean handleDelete()

        
void handleEndComposition()

        
boolean handleEnter()

        
boolean handleEscape()

        
boolean handleKeyNavigation(in unsigned short key)

        
void handleStartComposition()

        
void handleTab()

        
void handleText(in boolean aIgnoreSelection)

        
void setSearchString(in AString aSearchString)

        
void startSearch(in AString searchString)