Search completed in 1.36 seconds.
6 results for "nsiautocompletesession":
Textbox (XPFE autocomplete) - Archive of obsolete content
Archive › Mozilla › XUL › Textbox (XPFE autocomplete)
This method returns the object passed in. clearResults() Return type: ??? Clears the results list. getDefaultSession Return type: session name Returns the name o...
...This method returns the object passed in. clearResults() Return type: ??? Clears the results list. ...
...ed index. The item will be a value of type nsIAutoCompleteItem. getResultCount( session ) Returns the number of results, holded by the current session. getResultValueAt( index ) Return type: result value Returns the result value at the specified index. The item will correspond to the text of that item that appears in the popup. getSession( index ) Obsolete since Gecko 26 Return type: nsIAutoCompleteSession Returns the session object with the given index. This will return an object of type nsIAutoCompleteSession. getSessionByName( name ) Obsolete since Gecko 26 Return type: nsIAutoCompleteSession Returns the session object with the given name. This will return an object of type nsIAutoCompleteSession. getSessionResultAt( session, index ) Obsolete since Gecko 26 Return type: result item Re...
...teStatus Returns the status for the session object with the given index. getSessionValueAt( session, index ) Return type: result value Returns the result value at the specified index for a specific session. removeSession( session ) Obsolete since Gecko 26 Return type: void Removes a session object from the autocomplete widget. The argument should be an object which implements the nsIAutoCompleteSession interface. select() Return type: no return value Selects all the text in the textbox. setSelectionRange( start, end ) Return type: no return value Sets the selected portion of the textbox, where the start argument is the index of the first character to select and the end argument is the index of the character after the selection. Set both arguments to...
getSessionByName - Archive of obsolete content
Archive › Mozilla › XUL › Method › getSessionByName
...
... ...
addSession - Archive of obsolete content
Archive › Mozilla › XUL › Method › addSession
<< XUL Reference home addSession( session ) Obsolete since Gecko 26 Return type: nsIAutoCompleteSession Adds a new session object to the autocomplete widget. This can be used to create a customized autocomplete results list. The argument should be an object which implements the nsIAutoCompleteSession interface. This method returns the object passed in. ...
getSession - Archive of obsolete content
Archive › Mozilla › XUL › Method › getSession
<< XUL Reference home getSession( index ) Obsolete since Gecko 26 Return type: nsIAutoCompleteSession Returns the session object with the given index. This will return an object of type nsIAutoCompleteSession. ...
removeSession - Archive of obsolete content
Archive › Mozilla › XUL › Method › removeSession
...
Fun With XBL and XPConnect
Mozilla › Tech › XPCOM › Fun with XBL and XPConnect
engine that will perform our auto complete lookups. <binding name="autocomplete" extends="xul:box"> <content> <xul:textfield class="addressingWidget"/> <xul:menupopup/> </content> <implementation> <property name="autoCompleteSession"> <![CDATA[ Components.classes['component://netscape/messenger/autocomplete&type=addrbook']. getService(Components.interfaces.nsIAutoCompleteSession); ]]> </property> So we've defined a property on the widget called autoCompleteSession. The initial value of this property evaluates to an xp-connect object. Now accesses to autoCompleteSession will return the xp-connect object. Exposing the XPCOM Interfaces One somewhat nasty trick you need to do is to manually expose the interfaces of the XPCOM object that you want your widget to ...