This class simplifies the access to the Add-ons Manager.
Method overview
addonsManager(); |
close(); |
string getListItem(in string name, in string value); |
string getPane(); |
boolean isPluginEnabled(in string id); |
open(in MozMillController controller); |
search(in string searchTerm); |
setPane(in string paneId); |
setPluginState(in string id, in boolean enable); |
Attributes
| Attribute | Type | Description |
|---|---|---|
controller | | Controller of the browser window to operate on. |
searchField | | Get the search bar element. |
searchFieldButton | | Get the drop down button element of the search bar. |
Methods
addonsManager()
Constructor of the class.
addonsManager();
Parameters
None.
close()
Closes the Add-ons Manager window.
close();
Parameters
None.
getListItem()
Get the specified element string from the listbox of the currently selected pane.
string getListItem( in string name, in string value );
Parameters
namenodeNameof the specified listbox element.valuenodeValueof the specified listbox element.
Return value
Element lookup string of the listbox entry.
getPane()
Gets the currently selected pane.
string getPane();
Return value
ID of the currently selected pane. See setPane() for supported values.
isPluginEnabled()
Reports whether or not the specified plug-in is enabled..
boolean isPluginEnabled( in string id );
Parameters
id- AddonID of the plug-in (as shown by the DOM Inspector).
Return value
true if the plug-in is enabled.
open()
Opens the Add-ons Manager window.
open(
in MozMillController controller
);
Parameters
controller- Mozmill controller of the browser window to operate on.
search()
Searches for the specified search term inside the "Get Add-ons" pane.
search( in string searchTerm );
Parameters
searchTerm- Term to search for.
setPane()
Sets the specified pane as the active one.
setPane( in string paneId );
Parameters
paneId- ID of the pane to activate. Supported IDs are
search,extensions,themes,locales,plugins,updates, andinstalls.
setPluginState()
Sets the enabled state of the specified plug-in.
setPluginState( in string id, in boolean enable );
Parameters
id- AddonID of the plug-in (as shown by the DOM Inspector).
enabletrueif the plug-in should be enabled. To disable a plug-in usefalse.