Visit Mozilla.org

XUL:scrollbar

出典: MDC

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

コンテナの内容がそのコンテナのサイズよりも大きい場合、ユーザがコンテナ中をスクロールするためのスクロールバーがコンテナの側に置かれます。またスクロールバーは、ユーザが選択する必要のある数値や割合とは関係なく使用されます。ユーザは、スクロールバーの両端にある矢印をクリックするか、スクロールバーのノブをドラッグすることによって、スクロールバーの位置を調節することができます。

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

属性
curpos, increment, maxpos, pageincrement

[編集]

<scrollbar curpos="5" maxpos="50"/>

[編集] 属性

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

curpos
型: integer
0 から maxpos 属性の値までの範囲にある、scrollbar の現在の位置。デフォルトの値は 0 です。

increment
型: 真偽値
矢印がクリックされたときに curpos 属性の変更される量。デフォルトの値は 1 です。

maxpos
型: integer
scrollbar の位置の最大値。デフォルトの値は 100 です。

pageincrement
型: integer
curpos 属性の値が、スクロールバーのトレイをクリックした時に変更される量。トレイはスクロールバーのつまみが動く範囲です。デフォルトの値は 10 です。

[編集] プロパティ

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

[編集] メソッド

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

[編集] 関連項目

TBD