FUEL is deprecated as of Firefox 40. Consider using the Add-ons SDK instead
Method overview
fuelIBookmark addBookmark(in AString aTitle, in nsIURI aURI) |
fuelIBookmark addSeparator() |
fuelIBookmarkFolder addFolder(in AString aTitle) |
void remove() |
Attributes
Attribute | Type | Description |
id |
readonly attribute long long |
The id of the folder. |
title |
attribute AString |
The title of the folder. |
description |
attribute AString |
The description of the folder. |
type |
readonly attribute AString |
The type of the folder. values: "folder" |
parent |
attribute fuelIBookmarkFolder |
The parent folder of the folder. |
annotations |
readonly attribute fuelIAnnotations |
The annotations object for the folder. |
events |
readonly attribute fuelIEvents |
The events object for the folder. supports: "add", "addchild", "remove", "removechild", "change", "move" |
children |
readonly attribute nsIVariant |
Array of all bookmarks, separators and folders contained in this folder. |
Methods
addBookmark()
Adds a new child bookmark to this folder.
fuelIBookmark addBookmark(in AString aTitle, in nsIURI aURI)
Parameters
aTitle
- The title of bookmark.
Return value
addSeparator()
Adds a new child separator to this folder.
fuelIBookmark addSeparator()
Parameters
Return value
addFolder()
Adds a new child folder to this folder.
fuelIBookmarkFolder addFolder(in AString aTitle)
Parameters
aTitle
- The title of folder.
Return value
remove()
Removes the folder from the parent folder.
void remove()
Parameters
Return value
Examples
function url(spec) { var ios = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); return ios.newURI(spec, null, null); } var bookmark = Application.bookmarks.toolbar.addBookmark("Mozilla", url("http://www.mozilla.com"));