Radiogroup

A group of radio buttons. Only one radio button inside the group can be selected at a time. The radio buttons may either direct children of the radiogroup or descendants. Place the radiogroup inside a groupbox if you would like a border or caption around the group. The radiogroup defaults to vertical orientation.

To set the radio button that will be selected by default, set the selected attribute of a child radio element.

More information about radiogroup

ラジオボタンのひとまとまりを表す。同一グループ内で一度に選択され得るラジオボタンは一つだけである。ラジオボタン (radio) は radiogroup 要素の直接の子要素でも間接の子要素でもよい。グループに境界線や見出し (caption) をつけるには、 groupbox 要素内に radiogroup 要素を置く。 radiogroup 要素の既定の向きは縦並びである。

ラジオボタンがデフォルトで選択されるようにするには、子の radio 要素の selected 属性を設定する。

radiogroup の追加情報

属性:

disabled focused tabindex value

プロパティとメソッド:

accessible appendItem checkAdjacentElement disabled focusedItem
insertItemAt removeItemAt selectedIndex selectedItem 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

disabled

Type: boolean

Indicates whether the radiogroup is disabled or not. If this attribute is set to true, the radiogroup is disabled. This is usually drawn with the text in grey. If the radiogroup 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 radiogroup, leave the attribute out entirely as opposed to setting the value to false.

型 : boolean

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

focused

Type: boolean

This attribute is set to true if the radiogroup element is focused.

型 : boolean

radiogroup 要素がフォーカスされているときは、この属性は true に設定される。

tabindex

Type: integer

The tab order of the element. The tab order is the order in which the focus is moved when the user presses the Tab key. Elements with a higher tabindex are later in the tab order sequence.

型 : integer

要素のタブ順序。タブ順序は、ユーザがタブキーを押したときにフォーカスが移動する順番です。高い tabindex を持つ要素ほど、タブ順序の後のほうにくる。

value

Type: string

Returns the value property of the currently selected radio button. To change the selection, use the selectedIndex or selectedItem property.

型 : string

現在選択中のラジオボタンの value プロパティを返す。選択を変更するには、 selectedIndex プロパティか selectedItem プロパティを使用する。


プロパティとメソッド:

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

型 : nsIAccessible

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

appendItem ( label , value )

Return Type: radio element

Creates a new radio element and adds it to the end of the radiogroup. You may optionally set a value. The function returns the new item.

戻り値の型 : radio element

新しい radio 要素を作成して radiogroup の末尾に追加する。オプションとして値を設定することができる。この関数は新しい項目を返す。

checkAdjacentElement ( dir )

Return Type: no return value

Deselects the currently selected radio button in the group and selects the one adjacent to it. If the argument dir is true, the next radio button is selected. If it is false, the previous radio button is selected.

戻り値の型 : 戻り値なし

グループ内で現在選択中のラジオボタンを選択解除し、その隣のボタンを選択する。引数 dir が true の場合は、次のラジオボタンが選択される。false の場合は、その前のラジオボタンが選択される。

disabled

Type: boolean

Gets and sets the value of the disabled attribute.

型 : boolean

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

focusedItem

Type: radio element

Holds the currently focused item in the radiogroup, which may or may not be the same as the selected one. You can change the focused item by setting this property.

型 : radio element

ラジオグループで現在フォーカス中の項目を持つ。これは選択中のものと同一の場合も、同一ではない場合もありうる。このプロパティを設定すると、フォーカス項目を変更できる。

insertItemAt ( index, label , value )

Return Type: radio element

Creates a new radio element and inserts it at a specific position in the radiogroup. You may optionally set a value. The function returns the new item.

戻り値の型 : radio element

新しい radio 要素を作成し、radiogroup の指定した位置に挿入する。オプションとして値を設定することができる。この関数は新しい項目を返す。

removeItemAt ( index )

Return Type: radio element

Removes the child item in the radiogroup at the given index. The function returns the removed item.

戻り値の型 : radio element

指定したインデクスのラジオグループの子項目を削除する。この関数は削除した項目を返す。

selectedIndex

Type: radio element

Holds the index of the currently selected item in the radiogroup. If no item is currently selected, this value will be set to -1.. You can select an item by setting this value.

型 : radio element

ラジオグループで現在選択中の項目のインデクスを持つ。現在どの項目も選択していないときは、-1 になる。この値を設定すると、その項目を選択することができる。

selectedItem

Type: radio element

Holds the currently selected item in the radiogroup. If no item is currently selected, this value will be null. You can select an item by setting this value. A RadioStateChange event will be sent to the selected radio button when it is changed either via this property, the selectedIndex property, or changed by the user.

型 : radio element

現在ラジオグループで選択中の項目を持つ。現在どの項目も選択していないときは、この値は null になる。この値を設定すれば、その項目を選択できる。このプロパティや selectedIndex プロパティを使って、あるいはユーザの操作により選択ラジオボタンを変更すると、 RadioStateChange イベントが選択したラジオボタンに送信される。

value

Type: string

Gets and sets the value of the value attribute.

型 : string

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


Copyright (C) 1999 - 2004 XulPlanet.com