Statusbarpanel

An individual element of a statusbar. This is a special type of button which is drawn differently. Unlike normal buttons, a statusbarpanel can only have a label or an image but not both. This element is often used with a short label or icon to indicate status, for instance whether the user is online or whether there are new messages.

statusbar 特有の要素。特殊なボタンであり、描画のされ方は異なる。標準のボタンと異なり、 statusbarpanel 要素はラベルか画像のいずれか片方のみを持つことができ、両方同時には持たない。この要素は、短いラベルやアイコンにより、例えばオンラインであるかどうかとか、メッセージが新たに届いているかどうかを示すような、状況表示によく利用される。

属性:

crop label src

スタイルクラス:

statusbarpanel-iconic statusbarpanel-menu-iconic

プロパティとメソッド:

label src

属性:

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

crop

Type: one of the values below

If the label of the statusbarpanel is too small to fit in its given space, the text will be cropped on the side specified by the crop attribute. An ellipsis will be used in place of the cropped text. If the box direction is reversed, the cropping is reversed.

  • start: The text will be cropped on its left side.
  • end: The text will be cropped on its right side.
  • left: (Deprecated) The text will be cropped on its left side.
  • right: (Deprecated) The text will be cropped on its right side.
  • center: The text will be cropped on both sides.
  • none: The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment.

型 : 以下の値の一つ

与えられたスペースが小さくて statusbarpanel のラベルがその場所に合わないとき、crop 属性で指定した側にテキストは切り取られる。切り取られたテキストの位置には、省略記号が用いられる。ボックスの方向が逆のときは、切り取りも逆になる。

  • start: テキストの左側が切り取られる。
  • end: テキストの右側が切り取られる。
  • left: (非推奨) テキストの左側が切り取られる。
  • right: (非推奨) テキストの右側が切り取られる。
  • center: テキストの両側が切り取られる。
  • none: テキストの切り取りに省略記号が用いられない。テキストが非常に大きいときには、単に切られるだけである。側は CSS のテキスト配置 (alignment) に依存する。
label

Type: string

The label that will appear on the statusbarpanel. If this is left out, no text appears.

型 : string

statusbarpanel に表示するラベル。この属性がないと、テキストは表示されない。

src

Type: image URL

The URL of the image to appear on the statusbarpanel. If this attribute is left out, no image appears.

型 : image URL

statusbarpanel に表示する画像の URL。この属性がないと、画像は表示されない。


Style Classes:

The following classes may be used to style the element. These classes should be used instead of changing the style of the element directly since they will fit more naturally with the user's selected theme.

以下のクラスは、要素をスタイル付けするために用いられる。ユーザが選択したテーマにより自然に合うため、要素のスタイルを直接変更するかわりにこれらのクラスを使用するべきである。

statusbarpanel-iconic

Use this class to have an image appear on the statusbarpanel. Specify the image using the src attribute. The image will appear instead of the label.

statusbarpanel に表示される画像を保持するのにこのクラスを使う。 image 属性を使って画像を指定する。画像はラベルの代わりに表示される。

statusbarpanel-menu-iconic

Use this class to have an image appear on the statusbarpanel, and also allow a popup menu. Specify the image using the src attribute, and place a menupopup element inside the statusbarpanel. The image will appear instead of the label.

statusbarpanel に表示される画像を保持するのにこのクラスを使う。ポップアップメニューにも適用される。 src 属性を使って画像を指定し、statusbarpanel 要素に menupopup 子要素を置く。画像はラベルの代わりに表示される。


プロパティとメソッド:

label

Type: string

Gets and sets the value of the label attribute.

型 : string

label 属性の値を取得・設定する。

src

Type: image URL

Gets and sets the value of the src attribute.

型 : image URL

src 属性の値を取得・設定する。

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

Copyright (C) 1999 - 2004 XulPlanet.com