Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

broadcaster

broadcaster は複数の要素で一つ以上の属性値を共有したいとき、または状態の変化に要素が反応してほしいときに使われます。broadcaster を監視している全ての要素は broadcaster に置かれた属性を共有します。例えばbroadcaster が label 属性を持っていると observer はその label を使うでしょう。label が変更されると observer の label も自動的に更新されるでしょう。変更されたとき onbroadcast イベントが observer に送られます。

機能を無効にするときに menuitembutton に対して単に disabled の状態を設定したくなるでしょう。しかし代わりに command 要素を使うべきです。

詳しい情報は XUL チュートリアルのブロードキャスタとオブザーバにあります。

(例が必要)

属性

XUL 要素からの継承
align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortDirection, sortResource, sortResource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width

プロパティ

XUL 要素からの継承
align, attributes, allowEvents, baseURI, boxObject, builder, childElementCount, childNodes, children, className, clientHeight, clientLeft, clientTop, clientWidth, collapsed, contextMenu, controllers, database, datasources, dir, firstChild, firstElementChild, flex, height, hidden, id, lastChild, lastElementChild, left, localName, maxHeight, maxWidth, menu, minHeight, minWidth, namespaceURI, nextElementSibling, nextSibling, nodeName, nodeType, nodeValue, observes, ordinal, orient, ownerDocument, pack, parentNode, persist, prefix, previousElementSibling, previousSibling, ref, resource, scrollHeight, scrollLeft, scrollTop, scrollWidth, statusText, style, tagName,textContent, tooltip, tooltipText, top, width

メソッド

関連項目

TBD

ドキュメントのタグと貢献者

 このページの貢献者: Marsf, Taken
 最終更新者: Marsf,