Observes

The observes element can be used to listen to a broadcaster and receive events and attributes from it. The observes element should be placed inside the element that wants to observe the broadcaster. When an observed attribute is modified on the broadcaster, the attribute's value will be forwarded and set on the parent element of the observer.

More information about observes

observes 要素は broadcaster 要素を監視して broadcaster 要素からのイベントと属性を受信することに利用することができる。 observes 要素は broadcaster 要素を監視する要素内に置く必要がある。監視中の broadcaster 要素の属性値が変更されたとき、属性値が observes 要素の親要素へ転送され、設定される。

observes の追加情報


属性:

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

attribute

Type: attribute name

The attribute that the observer is observing. When the value of the attribute changes, the broadcast event is called on the observer. Use the value '*' to observe all attribute of the broadcasters. The id, ref and persist attributes are not observed.

型 : 属性名

監視要素が監視している属性。属性値が変更されると、 broadcast イベントが監視者で呼ばれる。 '*' という値を使うと、 broadcaster の全属性を監視する。 id、 ref、 persist の各属性は監視されない。

element

Type: broadcaster element id

The id of the broadcaster element that the observer is observing.

型 : broadcaster element id

監視要素が監視している broadcaster 要素の id。


プロパティとメソッド:

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