::xotcl::Class
::xowiki::TreeNode
Class Hierarchy of ::xowiki::TreeNode
- ::xotcl::Object
- Meta-class:
- ::xotcl::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- Methods for instances:
- __api_make_doc, __api_make_forward_doc, __timediff, abstract, ad_doc, ad_forward, ad_proc, appendC, arrayC, asHTML, autonameC, check, classC, cleanupC, configureC, containsC, copyC, db_0or1rowC, db_1rowC, debug, defaultmethodC, destroyC, destroy_on_cleanup, ds, evalC, existsC, extractConfigureArg, filterC, filterguardC, filtersearch, forward, hasclass, incrC, infoC, init, instvarC, invarC, isclass, ismetaclass, ismixin, isobject, istype, lappendC, log, method, mixinC, mixinguardC, moveC, msg, noinitC, objectparameter, parametercmdC, proc, procsearch, qn, requireNamespaceC, residualargsC, self, serialize, setC, set_instance_vars_defaults, show-object, substC, traceC, unknown, unsetC, uplevelC, upvarC, volatileC, vwait
- Methods to be applied on the class (in addition to the methods provided by the meta-class):
- getExitHandler, setExitHandler, unsetExitHandler
- ::xo::OrderedComposite
- Meta-class:
- ::xotcl::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- Methods for instances:
- __compare, add, children, contains, delete, destroy, last_child, orderby, show
- Methods to be applied on the class:
- Methods provided by the meta-class
- ::xowiki::Tree
- Meta-class:
- ::xotcl::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- Parameter for instances:
- id, name (default "")
- Methods for instances:
- add_item, add_pages, init, open_tree, render
- Methods to be applied on the class (in addition to the methods provided by the meta-class):
- include_head_entries, renderer
- ::xowiki::TreeNode
- Meta-class:
- ::xotcl::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- Parameter for instances:
- count, expanded (default "false"), highlight (default "false"), href (default ""), label, level, li_id, object, open_requests (default "0"), owner, pos, prefix (default ""), ul_class, ul_id
- Methods for instances:
- open_tree, render, some_child_has_items
- Methods to be applied on the class:
- Methods provided by the meta-class
Class Relations
- superclass: ::xowiki::Tree
![[i]](/resources/acs-subsite/ZoomIn16.gif)
::xotcl::Class create ::xowiki::TreeNode \
-superclass ::xowiki::Tree \
-parameter {count {expanded false} {highlight false} {href ""} label level li_id object \
{open_requests 0} owner pos {prefix ""} ul_class ul_id}
Methods
instproc open_tree
::375947 instproc open_tree {} {
my open_requests 1
my expanded true
if {[my exists __parent]} {[my set __parent] open_tree}
}
instproc render
::375947 instproc render {} {
set content ""
if {[my isobject [self]::items]} {
foreach i [[self]::items children] {
append cat_content [my render_item -highlight [$i exists open_item] $i ]
}
foreach c [my children] {append cat_content [$c render] \n}
append content [my render_node -open [expr {[my open_requests]>0}] $cat_content]
} elseif {[my open_requests]>0 || [my some_child_has_items]} {
set cat_content ""
foreach c [my children] {append cat_content [$c render] \n}
append content [my render_node -open true $cat_content]
}
return $content
}
instproc some_child_has_items
::375947 instproc some_child_has_items {} {
foreach i [my children] {
if {[my isobject ${i}::items]} {return 1}
if {[$i some_child_has_items]} {return 1}
}
return 0
}
Instances
::nsf::__#09
, ::nsf::__#0R
, ::nsf::__#0S
, ::nsf::__#0T
, ::nsf::__#0U
, ::nsf::__#0V
, ::nsf::__#0W
, ::nsf::__#0X
, ::nsf::__#0Y
, ::nsf::__#0Z
, ::nsf::__#0a
, ::nsf::__#0b![[i]](/resources/acs-subsite/ZoomIn16.gif)