Visit Mozilla.org

XUL:notification

出典: MDC

« XUL リファレンス HOME    [ | 属性 | プロパティ | メソッド | 関連項目 ]

notification は有益なメッセージを表示するために使用します。通常は notificationbox の一部として使用されます。

属性
image, label, priority, persistence, type, value
プロパティ
accessibleType, control, image, label, priority, persistence, type, value
メソッド
close

[編集]

<notification label="This is a warning"/>

[編集] 属性

XUL 要素からの継承
align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortDirection, sortResource, sortResource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width

image
型: 画像の URL
要素上に表示する画像の URL。この属性が空または除外された場合、画像は表示されません。画像の位置は dir 属性および orient 属性によって決定されます。

label
型: string
要素上に表示するlabel。 省略された場合、テキストは表示されない。

persistence
型: integer
persistence を 0 以外の値に設定すると、notificationboxremoveTransientNotifications メソッドはそれらを削除しません。これは、他の notification には影響を与えずに notification のグループを閉じるために使用します。

priority
型: integer
notification が現れる順番を指定する数値。これは notificationboxappendNotification メソッド内に記述された定数の一つでなければなりません。

type
型: 下記の値のいずれか一つ
priority から決定される notification の種類を指示します。
  • info: 重要性の低い通知。
  • warning: 通常の警告通知。
  • critical: 重大な通知。

value
型: 文字列
文字列の属性はデータ値を要素に関連付けます。特定の目的のために使われるわけではありませんが、スクリプトからあなた自身の用途のためにアクセスできます。

[編集] プロパティ

XUL 要素からの継承
align, allowEvents, boxObject, builder, className, collapsed, contextMenu, controllers, currentItem, database, datasources, dir, flex, height, hidden, id, left, listBoxObject, maxHeight, maxWidth, menu, minHeight, minWidth, observes, ordinal, orient, pack, persist, ref, resource, statusText, style, tooltip, tooltipText, top, value, width

DOM 要素からの継承
attributes, childNodes, cloneNode, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, tagName

accessibleType
型: integer
要素の accessibility オブジェクトの種類を示す値。

image
型: image URL
image 属性の値の取得と設定。

label
型: string
label 属性の値の取得と設定。

persistence
型: integer
persistence 属性の値の取得と設定。

priority
型: string
priority 属性の値の取得と設定。

type
型: string
type 属性の値の取得と設定。

value
型: 文字列
value 属性の値の取得と設定。

[編集] メソッド

XUL 要素からの継承
blur, click, doCommand, focus, getElementsByAttribute

DOM 要素からの継承
addEventListener, appendChild, dispatchEvent, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeEventListener, replaceChild, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS

close
戻り値の型: none
notification を閉じ、これを内包する notificationbox から削除します。

[編集] 関連項目

要素
notificationbox