Description

This element is used to create a block of text. The text can be set either with the value attribute or by placing text inside the open and close description tags. The value attribute is used to set text that appears in a single line. If text appears as a child of the description, it will wrap to multiple lines. If may contain arbitrary markup, which can be styled as needed.

More information about description

この要素はテキストブロックを作るために利用される。テキストは value 属性で指定するか、description 要素の開始タグと終了タグの間に記す。value 属性で指定したテキストは 1 行で表示される。テキストが description 要素の内容として記された場合は、複数行に行送りされ得る。任意のマークアップが可能で、必要に応じてスタイル付けすることもできる。

description の追加情報

属性:

crop disabled value

スタイルクラス:

header indent monospace plain small-margin

プロパティとメソッド:

accessible crop disabled value

属性:

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 description 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.

型 : 以下の値の一つ

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

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

Type: boolean

Indicates whether the description is disabled or not. If this attribute is set to true, the description is disabled. This is usually drawn with the text in grey. If the description is disabled, it does not respond to user actions. The element cannot be focused and the command event will not fire. The element will still respond to mouse events. To enable the description, leave the attribute out entirely as opposed to setting the value to false.

型 : boolean

説明が無効か有効かを表す。この属性を true に設定すると、説明は無効になる。通常、テキストが灰色で表示される。説明が無効の場合には、ユーザアクションに応答しない。要素にフォーカスできず、またコマンドイベントは起きない。マウスイベントにはまだ応答する。説明を有効にするには、値を false に設定したことに対応するものとして、この属性を取り除く。

value

Type: string

The text to be used for the description. The text will appear on a single line and will not wrap. Normally, you would not use a value attribute on a description element and instead place the text as the content inside the description tag.

型 : 文字列

説明に使用するテキスト。テキストは 1 行で表示され、ラップしない。通常は description 要素で value 属性は使用せず、かわりに description タグの内容としてテキストを置く。


スタイルクラス:

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.

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

header

A class used for headings. Typically, this will cause the text to appear bold.

見出し用のクラス。一般に、テキストを太字 (bold) で表示させる。

indent

This class causes the text to be indented on its left side.

このクラスは、テキストの左側をインデントする。

monospace

This class causes the text to be displayed in a monospace font.

このクラスは、テキストを monospace フォントで表示させる。

plain

This class causes the text to be displayed with no border or margin.

このクラスは、テキストをボーダーやマージンなしで表示させる。

small-margin

This class causes the text to be displayed with a smaller margin.

このクラスは、テキストをより小さいマージンで表示させる。


プロパティとメソッド:

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 description.

型 : nsIAccessible

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

crop

Type: string

Gets and sets the value of the crop attribute.

型 : string

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

disabled

Type: boolean

Gets and sets the value of the disabled attribute.

型 : boolean

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

value

Type: string

Gets and sets the value of the value attribute.

型 : 文字列

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


Copyright (C) 1999 - 2004 XulPlanet.com