Visit Mozilla.org

XUL:tabpanels

出典: MDC

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

tabbox 内のページセットを保持するためのコンテナ。tabpanels 要素は tabbox 内に置きます。tabpanels 要素の子は tabbox のパネルになります。通常、子要素は tabpanel 要素です。最初のタブをクリックすると、最初のパネルが表示されます。二番目のタブをクリックすると、二番目のパネルが表示されます。以下同様。

詳しい情報が XUL チュートリアルにあります。

属性
selectedIndex
プロパティ
selectedIndex, selectedPanel

[編集]

(例が必要)

[編集] 属性

selectedIndex
型: integer
現在選択されているパネルの index を取得、設定します。最初の項目の index は 0 です。

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

[編集] プロパティ

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 を返す。

selectedIndex
型: 整数値
選択された項目のインデックスを返します。また、このプロパティにインデックスを設定して項目を選択する事もできます。このプロパティに -1 を設定すると、項目の選択をすべて解除します。

selectedPanel
型: element
tabbox 要素内の現在選択されたパネルへの参照を保持します。このプロパティに値を割り当てると、選択されたパネルが変更されます。選択されたパネルが変更された時、select イベントが送られます。

[編集] メソッド

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

[編集] 関連項目

要素
tabbox, tabs, tab, tabpanel.