Visit Mozilla.org

XUL:richlistitem

出典: MDC

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

richlistbox で使用する個々のアイテム。

属性
disabled, searchlabel, selected, tabindex, value
プロパティ
accessible, control, disabled, label, selected, tabIndex, value

[編集]

(例が必要)

[編集] 属性

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

disabled
型: 真偽値
要素が無効化されているかどうかを示します。ある要素が true に設定されていたら、その要素は無効化されています。無効化された要素は通常グレイ表示のテキストで描画されます。要素が無効化されていると、ユーザのアクションには応答せず、フォーカスもあてられず、command イベントも発生しません。

searchlabel Firefox 3 の新機能
型: 文字列
'find-as-you-type' (FAYT) 検索で使用する文字列。検索テキストが曖昧か見つからないところでは、FAYT は searchlabel を基に検索を行います。searchlabel が設定されていない場合、FAYT は label プロパティを基に検索を行います。

selected
型: 真偽値
要素が選択されているかを返します。この値は読み取り専用です。選択された項目を変更するには selectedIndexselectedItem プロパティの値を変更してください。

tabindex
型: 整数
要素のタブの順番。タブの順番は tab キーが押下されたときにフォーカスが移動する順番です。より大きな tabindex の値をもつ要素は、タブの遷移が後になります。

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

accessible
型: nsIAccessible
要素の accessibility object を返す。

control
型: 要素の id
control 属性の値の取得と設定。

disabled
型: 真偽値
disabled 属性の値の取得と設定。

label
型: string
任意の label 子要素からテキストの連なりを取得します。ラベル値の設定はサポートしていません。ラベルテキストの設定は子要素を直接使用してください。

searchLabel Firefox 3 の新機能
型: string
searchlabel 属性の値の取得と設定。

selected
型: 真偽値
このプロパティの値は、要素が選択されているときは true、選択されていないときは false です。このプロパティは読み取り専用です。

tabIndex
型: 整数
tabindex 属性の値の取得と設定。

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

[編集] 関連項目

インタフェース
nsIAccessibleProvider, nsIDOMXULSelectControlItemElement