zul.wgt.Cell=zk.$extends(zul.Widget,{_colspan:1,_rowspan:1,_rowType:0,_boxType:1,$define:{colspan:function(b){var a=this.$n();a&&(a.colSpan=b)},rowspan:function(b){var a=this.$n();a&&(a.rowSpan=b)},align:function(b){var a=this.$n();a&&(a.align=b)},valign:function(b){var a=this.$n();a&&(a.valign=b)}},_getParentType:function(){return zk.isLoaded("zul.grid")&&this.parent.$instanceof(zul.grid.Row)?this._rowType:zk.isLoaded("zul.box")&&this.parent.$instanceof(zul.box.Box)?this._boxType:null},_getRowAttrs:function(){return this.parent._childAttrs(this,
this.getChildIndex())},_getBoxAttrs:function(){return this.parent._childInnerAttrs(this)},_colHtmlPre:function(){var b="",a=this.parent;zk.isLoaded("zkex.grid")&&a.$instanceof(zkex.grid.Group)&&this==a.firstChild&&(b+=a.domContent_());return b},domClass_:function(b){var a=this.$supers("domClass_",arguments);this._getParentType()==this._rowType&&!1===this._headerVisible&&(a+=" "+this.$s("hidden-column"));return a},domStyle_:function(b){var a="";this._align&&(a+=" text-align:"+this._align+";");this._valign&&
(a+=" vertical-align:"+this._valign+";");this._getParentType()==this._rowType&&!1===this._headerVisible&&(b=zk.copy(b,{visible:!0}));return this.$supers("domStyle_",[b])+a},domAttrs_:function(b){var a=this.$supers("domAttrs_",arguments),c;1!=(c=this._colspan)&&(a+=' colspan="'+c+'"');1!=(c=this._rowspan)&&(a+=' rowspan="'+c+'"');a=zUtl.parseMap(a," ",'"');switch(this._getParentType()){case this._rowType:var d=zUtl.parseMap(this._getRowAttrs()," ",'"');break;case this._boxType:d=zUtl.parseMap(this._getBoxAttrs(),
" ",'"')}if(d){c=d.style;var e=a.style;if(c&&e){c=zUtl.parseMap(c.replace(/"/g,"").replace(/:/g,"="),";");e=zUtl.parseMap(e.replace(/"/g,"").replace(/:/g,"="),";");zk.copy(c,e);var f=zUtl.mapToString(c,":",";")}zk.copy(d,a);f&&(d.style='"'+f+'"')}return" "+zUtl.mapToString(d)},setVisible:function(b){this.$supers("setVisible",arguments);zk.ie10_&&b&&zk(this.$n()).redoCSS()},deferRedrawHTML_:function(b){b.push("<td",this.domAttrs_({domClass:1}),' class="z-renderdefer"></td>')},getFlexContainer_:function(){return null}});
