bookmarkProperties.js File Reference

Go to the source code of this file.

Variables

const BOOKMARK_ITEM = 0
 
const BOOKMARK_FOLDER = 1
 
const LIVEMARK_CONTAINER = 2
 
const ACTION_EDIT = 0
 
const ACTION_ADD = 1
 
var BookmarkPropertiesPanel
 

Variable Documentation

const ACTION_ADD = 1

Definition at line 101 of file bookmarkProperties.js.

const ACTION_EDIT = 0

Definition at line 100 of file bookmarkProperties.js.

const BOOKMARK_FOLDER = 1

Definition at line 97 of file bookmarkProperties.js.

const BOOKMARK_ITEM = 0

The panel is initialized based on data given in the js object passed as window.arguments[0]. The object must have the following fields set: @ action (String). Possible values:

  • "add" - for adding a new item. @ type (String). Possible values:
    • "bookmark" @ loadBookmarkInSidebar - optional, the default state for the "Load this bookmark in the sidebar" field.
    • "folder" @ URIList (Array of nsIURI objects) - optional, list of uris to be bookmarked under the new folder.
    • "livemark" @ uri (nsIURI object) - optional, the default uri for the new item. The property is not used for the "folder with items" type. @ title (String) - optional, the default title for the new item. @ description (String) - optional, the default description for the new item. @ defaultInsertionPoint (InsertionPoint JS object) - optional, the default insertion point for the new item. @ keyword (String) - optional, the default keyword for the new item. @ postData (String) - optional, POST data to accompany the keyword. @ charSet (String) - optional, character-set to accompany the keyword. Notes: 1) If |uri| is set for a bookmark/livemark item and |title| isn't, the dialog will query the history tables for the title associated with the given uri. If the dialog is set to adding a folder with bookmark items under it (see URIList), a default static title is used ("[Folder Name]"). 2) The index field of the default insertion point is ignored if the folder picker is shown.
  • "edit" - for editing a bookmark item or a folder. @ type (String). Possible values:
    • "bookmark" @ itemId (Integer) - the id of the bookmark item.
    • "folder" (also applies to livemarks) @ itemId (Integer) - the id of the folder. @ hiddenRows (Strings array) - optional, list of rows to be hidden regardless of the item edited or added by the dialog. Possible values:
  • "title"
  • "location"
  • "description"
  • "keyword"
  • "tags"
  • "loadInSidebar"
  • "feedLocation"
  • "siteLocation"
  • "folderPicker" - hides both the tree and the menu. @ readOnly (Boolean) - optional, states if the panel should be read-only

window.arguments[0].performed is set to true if any transaction has been performed by the dialog.

Definition at line 96 of file bookmarkProperties.js.

var BookmarkPropertiesPanel

Definition at line 103 of file bookmarkProperties.js.

const LIVEMARK_CONTAINER = 2

Definition at line 98 of file bookmarkProperties.js.