Treeitem
A treeitem should be placed inside a treechildren element and should contain treerow elements. The treeitem can be clicked by the user to select the row of the tree. The treeitem contains a single row and all of what appear to the user as that row's descendants.
In a template condition, you should use a treeitem instead of a content element when the 'dont-build-content' flag is specified. Set the uri attribute to the variable name to bind to a content node during matching.
treeitem 要素は treechildren 要素内に置く必要があり、 treerow 要素を持つ必要がある。 treeitem 要素は行を選択する際にユーザからクリックされ得る。 treeitem 要素は一つの行および、その行から派生してユーザに表示されるすべての子行を含む。
template の条件では、 'dont-build-content' フラグが指定されている場合は content 要素の代わりに treeitem 要素を使用する必要がある。 uri 属性には、合致したときに内容ノードに結びつけられる変数名を設定する。
属性:
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
container
Type: boolean
Set to true if the element is to act as a container which can have child elements. This would be used for folders. This will be set by the template builder as needed.
型 : boolean
この要素が子要素を持つことのできるコンテナとして働くとき、 true となる。フォルダに対して使用される。この属性は、必要に応じてテンプレートビルダにより設定される。
empty
Type: boolean
Set to true if the element is a container that contains no children.
型 : boolean
この要素が子要素を持たないコンテナであるとき、 true となる。
label
Type: string
For trees with only a single column, the label may be placed directly on the treeitem without the need for a treerow and treecell inside.
型 : string
列が 1 つだけのツリーでは、 treerow 要素や treecell 要素内にラベルを入れないで、 treeitem 要素上に直接ラベルを置くことができる。
open
Type: boolean
If true, the treeitem is open, allowing child elements to be displayed.
型 : boolean
true の場合、 treeitem 要素はオープンであり、子要素が表示されている。
uri
Used to specify the variable name for the content in a template condition. When a rule is evaluated, it scans through each resource in the RDF datasource looking for a match. Each resource is placed in the variable specified in the uri attribute in turn. Then, the other rules are evaluated for a match.
テンプレート条件の内容に対し、変数名を指定するのに用いられる。ルールが評価されると、 RDF データソースの各リソースをスキャンして合致するものを探す。リソースはそれぞれ順番に、 uri 属性で指定された変数に置き換えられる。その後、他のルールが合致について評価される。
プロパティとメソッド:
XUL Element から継承:
Element から継承: