Showing
2 changed files
with
10 additions
and
16 deletions
... | @@ -5479,24 +5479,13 @@ app:TreeChildrenTemplates | ... | @@ -5479,24 +5479,13 @@ app:TreeChildrenTemplates |
5479 | 5479 | ||
5480 | app:TreeDataProvider | 5480 | app:TreeDataProvider |
5481 | rdf:type ui:NodeClass ; | 5481 | rdf:type ui:NodeClass ; |
5482 | - rdfs:comment "A TreeDataProvider is backed by two SELECT queries - one to get the roots, and one to get the children of a given node."^^xsd:string ; | 5482 | + rdfs:comment """Instances of this class are used as server callbacks to drive an app:Tree. |
5483 | + | ||
5484 | +A TreeDataProvider is backed by two SELECT queries - one to get the roots, and one to get the children of a given node. Optionally, a root resource can be supplied to overload the default root(s)."""^^xsd:string ; | ||
5483 | rdfs:label "Tree data provider"^^xsd:string ; | 5485 | rdfs:label "Tree data provider"^^xsd:string ; |
5484 | rdfs:subClassOf app:TreeElements ; | 5486 | rdfs:subClassOf app:TreeElements ; |
5485 | spin:constraint | 5487 | spin:constraint |
5486 | [ rdf:type spl:Argument ; | 5488 | [ rdf:type spl:Argument ; |
5487 | - rdfs:comment "The id of the node to get the children of."^^xsd:string ; | ||
5488 | - spl:predicate arg:id ; | ||
5489 | - spl:valueType xsd:string | ||
5490 | - ] ; | ||
5491 | - spin:constraint | ||
5492 | - [ rdf:type spl:Argument ; | ||
5493 | - rdfs:comment "The root resource. If none is specified, then the system will use compute the root(s) from the roots template."^^xsd:string ; | ||
5494 | - spl:optional "true"^^xsd:boolean ; | ||
5495 | - spl:predicate arg:root ; | ||
5496 | - spl:valueType rdfs:Resource | ||
5497 | - ] ; | ||
5498 | - spin:constraint | ||
5499 | - [ rdf:type spl:Argument ; | ||
5500 | rdfs:comment "The subclass of app:TreeChildrenTemplates that delivers the children of a given parent node."^^xsd:string ; | 5489 | rdfs:comment "The subclass of app:TreeChildrenTemplates that delivers the children of a given parent node."^^xsd:string ; |
5501 | spl:predicate arg:treeChildrenTemplate ; | 5490 | spl:predicate arg:treeChildrenTemplate ; |
5502 | spl:valueType spin:Template | 5491 | spl:valueType spin:Template |
... | @@ -5510,12 +5499,17 @@ app:TreeDataProvider | ... | @@ -5510,12 +5499,17 @@ app:TreeDataProvider |
5510 | ] ; | 5499 | ] ; |
5511 | ui:prototype | 5500 | ui:prototype |
5512 | [ rdf:type ui:group ; | 5501 | [ rdf:type ui:group ; |
5502 | + let:id [ rdf:type ui:param ; | ||
5503 | + sp:arg1 "id" | ||
5504 | + ] ; | ||
5513 | ui:child | 5505 | ui:child |
5514 | [ rdf:type ui:if ; | 5506 | [ rdf:type ui:if ; |
5515 | ui:child | 5507 | ui:child |
5516 | [ rdf:type ui:call ; | 5508 | [ rdf:type ui:call ; |
5517 | arg:root | 5509 | arg:root |
5518 | - [ sp:varName "root"^^xsd:string | 5510 | + [ rdf:type ui:param ; |
5511 | + sp:arg1 "root" ; | ||
5512 | + sp:arg2 rdfs:Resource | ||
5519 | ] ; | 5513 | ] ; |
5520 | ui:child | 5514 | ui:child |
5521 | [ rdf:type app:TreeDataProviderHelper ; | 5515 | [ rdf:type app:TreeDataProviderHelper ; | ... | ... |
... | @@ -51,7 +51,7 @@ log:LogBrowser | ... | @@ -51,7 +51,7 @@ log:LogBrowser |
51 | arg:dataProvider app:ClassTreeDataProvider ; | 51 | arg:dataProvider app:ClassTreeDataProvider ; |
52 | arg:id "classTree"^^xsd:string ; | 52 | arg:id "classTree"^^xsd:string ; |
53 | arg:onSelect "appLoadWithResource('form', 'resourceType', resource)"^^xsd:string ; | 53 | arg:onSelect "appLoadWithResource('form', 'resourceType', resource)"^^xsd:string ; |
54 | - arg:root "log:LogEvent"^^xsd:string ; | 54 | + arg:root log:LogEvent ; |
55 | ui:childIndex 0 | 55 | ui:childIndex 0 |
56 | ] ; | 56 | ] ; |
57 | ui:childIndex 1 | 57 | ui:childIndex 1 | ... | ... |
-
Please register or login to post a comment