Tabs
A row of tabs. A tabs element should be placed inside a tabbox and should contain tab elements.
属性:
closebutton | disableclose | first-tab | last-tab | onclosetab |
onnewtab | onselect | setfocus | tooltiptextnew |
属性:
XUL Element から継承:
align
allowevents
allownegativeassertions
class
coalesceduplicatearcs
collapsed
container
containment
context
contextmenu
datasources
debug
dir
empty
equalsize
flags
flex
height
hidden
id
insertafter
insertbefore
left
maxheight
maxwidth
menu
minheight
minwidth
mousethrough
observes
ordinal
orient
pack
persist
popup
position
ref
removeelement
sortDirection
sortResource
sortResource2
statustext
style
template
tooltip
tooltiptext
top
uri
wait-cursor
width
closebutton
Type: boolean
If this attribute is set to true, the tabs row will have a new tab button and close button on the ends. This feature is used by the tabbrowser to add the capability to add new tabs and close existing tabs. You can set an image to the new and close buttons by applying them to the 'tabs-newbutton' and 'tabs-closebutton' classes respectively.
型 : boolean
この属性を true に設定した場合、タブ列は新規タブ作成ボタンと閉じるボタンを両端に持つ。この機能は tabbrowser で用いられており、新しいタブを追加したり既存のタブを閉じたりすることができるようにしている。 'tabs-newbutton' クラスと 'tabs-closebutton' クラスのそれぞれに画像を適用することにより、新規作成ボタンや閉じるボタンに画像を設定することもできる。
disableclose
Type: boolean
If tis attribute is true, the close button will be disabled.
型 : boolean
この属性が true の場合、閉じるボタンは無効になる。
first-tab
Type: boolean
This attribute will be set to true for the first tab. This attribute should not be set manually, but is useful in a theme if the first tab should be styled differently.
型 : boolean
最初のタブで、この属性は true になる。この属性は手動で設定するべきではない。最初のタブに異なるスタイルを付ける場合に、テーマで役に立つ。
last-tab
Type: boolean
This attribute will be set to true for the last tab. This attribute should not be set manually, but is useful in a theme if the last tab should be styled differently.
型 : boolean
最後のタブで、この属性は true になる。この属性は手動で設定するべきではない。最後のタブに異なるスタイルを付ける場合に、テーマで役に立つ。
onclosetab
Type: script code
This script will be called when the close tab button is clicked.
型 : script code
タブ閉じボタンをクリックしたとき、このスクリプトが呼ばれる。
onnewtab Not in Firefox
Type: script code
This script will be called when the new tab button is clicked.
型 : script code
新規タブ作成ボタンをクリックしとき、このスクリプトが呼ばれる。
onselect
Type: script code
This event is sent to the tabs element when the tab is changed.
型 : script code
タブが変更されたときに、このイベントが tabs 要素に送信される。
setfocus
Type: boolean
If true or omitted, the focus will be given to the first element in the corresponding tabpanel when the tabs are navigated via the keyboard. If this attribute is false, the focus does not change during navigation.
型 : boolean
true にするか削除した場合、キーボードでタブ間を移動すると、対応する tabpanel の最初の要素にフォーカスが設定される。この属性を false にした場合、フォーカスは移動中には変更されない。
tooltiptextnew Not in Firefox
Type: string
Used to set the text which appears in the tooltip when the user moves the mouse over the new button in the tab row.
型 : string
ユーザがタブ列の新規タブ作成ボタン上にマウスを移動したときに、ツールチップに表示するテキストの設定に用いる。
プロパティとメソッド:
XUL Element から継承:
align
allowEvents
blur
boxObject
boxObject.element
boxObject.getLookAndFeelMetric
boxObject.height
boxObject.screenX
boxObject.screenY
boxObject.width
boxObject.x
boxObject.y
builder
className
click
collapsed
contextMenu
controllers
database
datasources
dir
doCommand
flex
focus
getElementsByAttribute
height
hidden
id
left
maxHeight
maxWidth
menu
minHeight
minWidth
observes
ordinal
orient
pack
persist
ref
resource
statusText
style
tooltip
tooltipText
top
width
Element から継承:
addEventListener
appendChild
attributes
childNodes
cloneNode
dispatchEvent
firstChild
getAttribute
getAttributeNS
getAttributeNode
getAttributeNodeNS
getElementsByTagName
getElementsByTagNameNS
hasAttribute
hasAttributeNS
hasAttributes
hasChildNodes
insertBefore
isSupported
lastChild
localName
namespaceURI
nextSibling
nodeName
nodeType
nodeValue
normalize
ownerDocument
parentNode
prefix
previousSibling
removeAttribute
removeAttributeNS
removeAttributeNode
removeChild
removeEventListener
replaceChild
setAttribute
setAttributeNS
setAttributeNode
setAttributeNodeNS
tagName
advanceSelectedTab ( dir )
Return Type: no return value
If the argument dir is set to 1, the currently selected tab changes to the next tab. If the argument dir is set to -1, the currently selected tab changes to the previous tab.
戻り値の型 : no return value
引数 dir を 1 にした場合、現在選択中のタブは次に移る。引数 dir を -1 にした場合、前のタブが現在選択中になる。
appendItem ( label , value )
Creates a new tab element and adds it to the end of the list of tabs. You may optionally set a value. Note that a new tabpanel is not created. This method returns the added tab. The function returns the new item.
新しい tab 要素を作成して tabs のリストの末尾に追加する。オプションとして値を設定することができる。tabpanel は新規作成されないことに注意。このメソッドは追加したタブを返す。この関数は新しい項目を返す。
insertItemAt ( index, label , value )
Return Type: tab element
Creates a new tab element and inserts it at a specific position in the list of tabs. You may optionally set a value. This method returns the added tab. The function returns the new item.
戻り値の型 : tab element
新しい tab 要素を作成して tabs のリストの指定した位置に挿入する。オプションとして値を設定することができる。このメソッドは追加したタブを返す。この関数は新しい項目を返す。
removeItemAt ( index )
Return Type: tab element
Removes the child tab in the menu at the given index. The function returns the removed item.
戻り値の型 : tab element
メニューの指定したインデクスの子要素 tab を削除する。この関数は削除した項目を返す。
selectedIndex
Gets and sets the value of the selectedindex attribute.
selectedindex 属性の値を取得・設定する。
selectedItem
Type: tab element
Holds a reference to the currently selected tab element. Assign a value to this property to modify the currently selected tab.
型 : tab element
現在選択中の tab 要素を持つ。このプロパティに値を割り当てると、現在選択中のタブを変更することができる。