メソッドの概要
void remove() |
属性
属性 | 型 | 説明 |
id |
readonly attribute long long |
ブックマークの id。 |
title |
attribute AString |
ブックマークのタイトル。 |
uri |
attribute nsIURI |
ブックマークの URI。 |
description |
attribute AString |
ブックマークの説明。 |
keyword |
attribute AString |
ブックマークに関連付けられたキーワード。 |
type |
readonly attribute AString |
ブックマークの種類。値は "bookmark", "separator" のいずれか。 |
parent |
attribute fuelIBookmarkFolder |
ブックマークの親フォルダ。 |
annotations |
readonly attribute fuelIAnnotations |
ブックマークに対する注釈オブジェクト。 |
events |
readonly attribute extIEvents |
ブックマークに対するイベントオブジェクト。 "remove", "change", "visit", "move" をサポート。 |
メソッド
remove()
アイテムを親フォルダから削除する。ブックマークや区切りを削除するために使う。
void remove()
引数
---
戻り値
---
例
const NEVER_EXPIRE = 0; 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")); bookmark.keyword = "webdev"; // check some properties alert(bookmark.title); // should show "Mozilla" alert(bookmark.uri.spec); // should show "http://www.mozilla.com" // setup an event to listen for changes to the bookmark bookmark.events.addListener("change", function(event) { alert(event.data); }); bookmark.title = "MoCo"; // should alert "title" bookmark.keyword = "addons"; // should alert "keyword"
関連情報
---