::xotcl::Class
::xo::tdom::Object
Class Hierarchy of ::xo::tdom::Object
- ::xotcl::Object
- Meta-class:
- ::xotcl::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- Methods for instances:
- __api_make_doc, __api_make_forward_doc, __nextC, __timediff, abstract, ad_doc, ad_forward, ad_proc, appendC, arrayC, asHTML, autonameC, checkC, classC, cleanupC, configureC, contains, copy, db_1rowC, debug, defaultmethod, destroyC, destroy_on_cleanup, evalC, existsC, extractConfigureArg, filterC, filterguardC, filtersearchC, forwardC, hasclass, incrC, infoC, init, instvarC, invarC, isclassC, ismetaclassC, ismixinC, isobjectC, istypeC, lappendC, log, method, mixinC, mixinguardC, move, msg, noinitC, parametercmdC, procC, procsearchC, qn, requireNamespaceC, self, serialize, setC, substC, traceC, unsetC, uplevelC, upvarC, volatileC, vwaitC
- Methods to be applied on the class (in addition to the methods provided by the meta-class):
- __exitHandler, 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
- ::xo::tdom::Object
- Meta-class:
- ::xotcl::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- Parameter for instances:
- autorender (default "true")
- Methods for instances:
- get_attributes, render
- Methods to be applied on the class:
- Methods provided by the meta-class
Class Relations
- superclass: ::xo::OrderedComposite
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- subclass: ::xowiki::formfield::FormField
![[i]](/resources/acs-subsite/ZoomIn16.gif)
::xotcl::Class create ::xo::tdom::Object \
-superclass ::xo::OrderedComposite \
-parameter {{autorender true}}
Methods
<instance of ::xo::tdom::Object
> get_attributes args [ args... ]
Get a list of attribute value pairs
of instance attributes. It returns only those
pairs for which a value exists.
- Parameters:
-
args
- Returns:
- flattened list of attribute value pairs
::xo::tdom::Object instproc get_attributes args {
set pairs [list]
foreach attribute $args {
set l [split $attribute]
if {[llength $l] > 1} {
foreach {attribute HTMLattribute} $l break
} else {
set HTMLattribute $attribute
}
#my msg "[my name] check for $attribute => [my exists $attribute]"
if {[my exists $attribute]} {
lappend pairs $HTMLattribute [my set $attribute]
}
}
return $pairs
}instproc render
::xo::tdom::Object instproc render {} {
foreach o [my children] { $o render }
}