Toolbar

A container which typically contains a row of buttons. It is a type of box that defaults to horizontal orientation. It can be collapsed with a grippy when the toolbar is placed inside a toolbox. The toolbar should always have an id attribute. Firefox supports toolbar customization, whereas the Mozilla browser does not.

More information about toolbar

ボタンの並びを持つコンテナ。これは横並びを既定方向とするボックスの一種である。 ツールボックス内に配置されたツールバーはつまみ (グリッピー) によりたたむことができる。 toolbar 要素は常に id 属性を持つ必要がある。 Firefox はツールバーのカスタマイズが可能である一方、 Mozilla ブラウザはそうでない。

toolbar の追加情報

属性:

currentset customindex customizable defaultset grippyhidden
grippytooltiptext toolbarname

プロパティとメソッド:

accessible currentSet firstPermanentChild insertItem lastPermanentChild
toolbarName

属性:

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

currentset    Firefox only

The current set of displayed items on the toolbar. This should be set to a comma-separated list of item IDs from the toolbarpalette.

現在ツールバーに表示されている項目のセット。 toolbarpalette からカンマで区切った項目 ID のリストを設定する必要がある。.

customindex    Firefox only

This value is the index of the toolbar in the list of the custom toolbars. The value is updated automatically by the toolbar customization dialog.

この値は、カスタムツールバーのリストにおけるこのツールバーのインデックスである。ツールバーカスタムダイアログで自動的に更新される。

customizable    Firefox only

Set this attribute to true on toolbars that can be customized. This causes the set of buttons to be persisted across sessions.

この属性を true に設定すると、ツールバーはカスタマイズ可能になる。こうすることで、一連のボタンをセッション間で存続させることができる。

defaultset    Firefox only

The default set of displayed items on the toolbar. This should be set to a comma-separated list of item IDs from the toolbarpalette. For example, 'back-button,forward-button,print-button'.

ツールバーに表示する項目のデフォルトセット。 toolbarpalette からカンマで区切った項目 ID のリストを設定する必要がある。例として、 'back-button,forward-button,print-button' 。

grippyhidden    Not in Firefox

Type: boolean

When set to true, the grippy will be hidden. When set to false, the default, the grippy will be shown.

型 : boolean

true に設定すると、グリッピーは隠される。 false (デフォルト) に設定すると、グリッピーは現れる。

grippytooltiptext    Not in Firefox

Type: string

The text to appear on the tooltip for the toolbar's grippy when the toolbar is collapsed. This would be used to label the grippy so that the user knows which toolbar it represents.

型 : string

ツールバーがたたまれているときに、ツールバーのつまみ (グリッピー) のツールチップに表示されるテキスト。そのグリッピーがどのツールバーのものなのかをユーザに分かるようにするため、グリッピーにラベルづけするのに用いられる。

toolbarname    Firefox only

The name of the toolbar, which is listed on the Show/Hide toolbars menu.

ツールバーの名前。「表示/隠す (Show/Hide)」ツールバーメニューでリスト化される。


プロパティとメソッド:

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

accessible

Type: nsIAccessible

Returns the accessibility object for the toolbar.

型 : nsIAccessible

toolbar の accessibility オブジェクトを返す。

currentSet    Firefox only

Holds a comma separated list of the items currently on the toolbar. This will be modified when the user customizes the toolbar. You may change the current set of items by setting this property.

現在ツールバー上にある項目のカンマで区切ったリストを保持する。ユーザがツールバーをカスタマイズすると変更される。このプロパティを設定すれば、現在の項目のセットを変更することができる。

firstPermanentChild    Firefox only

The first permanent child of the toolbar. A permanent child is one that is not customizable and remains on the toolbar. Items that are placed directly inside the toolbar without being in the toolbarpalette are permanent.

ツールバーの最初の永続的な子要素。永続的な子要素とは、カスタマイズできずツールバー上にずっとある子要素のこと。 toolbarpalette 要素内に置かれずに toolbar 要素に直接置かれた項目は永続的である。

insertItem ( id , beforeNode , wrapper , beforePermanent )     Firefox only

Add an item with the given id to the toolbar. The new item is added just before the item given by the second argument. If the second argument is null, but the beforePermanent argument is true, the item is added to the beginning of the toolbar before the first permanent item. Otherwise, if the beforePermanent argument is false, the new item is added to the end of the toolbar. The third argument can be used to wrap the new item in another element. Usually, the last argument will be null as it is mainly for the use of the customize dialog.

The id should match an element in the toolbar's toolbarpalette. Some special ids may also be used to create special spacing items:

  • separator: A separator, which is drawn as a vertical bar
  • spacer: A non-flexible space.
  • spring: A flexible space.

指定した id の項目をツールバーに追加する。この新規項目は、第 2 引数で指定された項目の直前に追加される。第 2 引数が null の場合は、引数 beforePermanent が true のときは最初の永続項目の前のツールバーの最初に追加される。そうでなく beforePermanent が false のときは新規項目はツールバーの最後に追加される。第 3 引数は他の要素で新規項目をラップするために使用される。通常、最後の引数は主としてカスタマイズダイアログでの使用のためであり、 null とされる。

id はツールバーの toolbarpalette における要素にマッチする必要がある。数個の特別な id を、特定の間隔をあけるための項目を作成するために使用することができる。

  • separator: セパレータ。縦方向のバーとして描画される。
  • spacer: フレキシブルでない間隔。
  • spring: フレキシブルな間隔。
lastPermanentChild    Firefox only

The last permanent child of the toolbar.

ツールバーの最後の永続的な子要素。

toolbarName    Firefox only

The name of the toolbar.

ツールバーの名前。


Copyright (C) 1999 - 2004 XulPlanet.com