zul.sel.Treerow=zk.$extends(zul.Widget,{getTree:function(){return this.parent?this.parent.getTree():null},getLevel:function(){return this.parent?this.parent.getLevel():0},getLinkedTreechildren:function(){return this.parent?this.parent.treechildren:null},domClass_:function(a){var b=this.$supers("domClass_",arguments),c=this.parent;!c||a&&a.zclass||(c.isDisabled()&&(b+=(b?" ":"")+this.$s("disabled")),c.isSelected()&&(b+=(b?" ":"")+this.$s("selected")));return b},domTooltiptext_:function(){return this._tooltiptext||
this.parent._tooltiptext||this.parent.parent._tooltiptext},domStyle_:function(a){return(this.parent&&!this.parent._isRealVisible()&&this.isVisible()?"display:none;":"")+this.$supers("domStyle_",arguments)},removeChild:function(a){for(var b=a.firstChild;b;){var c=b.nextSibling;a.removeChild(b);b=c}this.$supers("removeChild",arguments)},doClick_:function(a){var b=this.parent,c=a.domTarget;c==this.$n("open")||c==this.$n("icon")?(b.setOpen(!b._open),a.stop(),this.getTree().focus()):b.isDisabled()||this.$supers("doClick_",
arguments)},scrollIntoView:function(){var a=this.getTree()._scrollbar;a?(a.syncSize(),a.scrollToElement(this.$n())):this.$supers("scrollIntoView",arguments)},deferRedrawHTML_:function(a){a.push("<tr",this.domAttrs_({domClass:1}),' class="z-renderdefer"></tr>')}});
