Visit Mozilla.org

XUL:content

出典: MDC

« XUL リファレンス HOME    [ | 属性 | プロパティ | メソッド | 関連項目 ]

この要素は conditions 要素内に現れます。ルールの conditions はこの要素を含み、ただ一つの content 要素を持ってなければなりません。content 要素は uri 属性を持っていなければなりません。これは、条件が合うとき、content ノードに変数を結びつけるために使用されます。flags 属性に dont-build-content が設定された tree を使用する場合は、代わりに treeitem を使用してください。

詳しい情報は XUL チュートリアルにあります。

プロパティ
tag, uri

[編集]

(例が必要)

[編集] 属性

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, allowEvents, boxObject, builder, className, collapsed, contextMenu, controllers, currentItem, database, datasources, dir, flex, height, hidden, id, left, listBoxObject, maxHeight, maxWidth, menu, minHeight, minWidth, observes, ordinal, orient, pack, persist, ref, resource, statusText, style, tooltip, tooltipText, top, value, width

DOM 要素からの継承
attributes, childNodes, cloneNode, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, tagName

tag
型: タグ名
タグ名にセットします。セットした場合は、テンプレートビルダーがこのタグを直接に包含する要素について内容を精査している場合にのみ、条件がマッチします。例えば、treechildrenの値を使った場合、直接treechildrenタグを内包している要素が置かれた時だけ、条件がマッチします。したがって、ネストされた要素は、直接treeitemを内包しているが故にマッチしません。この属性は、要素の内と外で違うルールを適用したい場合に有用です。

uri
型: ?
コンテンツの変数名を指定するために使用されます。ルールが評価されるときは、RDF データソース内の各リソースから一致するものを探します。各リソースが順に uri 属性の中で指定された変数に置かれます。次に、他の一致するルールが評価されます。この属性は常に提供されています。

[編集] メソッド

XUL 要素からの継承
blur, click, doCommand, focus, getElementsByAttribute

DOM 要素からの継承
addEventListener, appendChild, dispatchEvent, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeEventListener, replaceChild, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS

[編集] 関連項目

TBD