zul.wgt.Image=zk.$extends(zul.Widget,{$define:{src:function(b){b&&this._preloadImage&&zUtl.loadImage(b);var a=this.getImageNode();a&&(a.src=b||"")},hover:null,align:function(b){var a=this.getImageNode();a&&(a.align=b||"")},hspace:function(b){var a=this.getImageNode();a&&(a.hspace=b)},vspace:function(b){var a=this.getImageNode();a&&(a.vspace=b)}},getImageNode:function(){return this.$n()},doMouseOver_:function(){var b=this._hover;if(b){var a=this.getImageNode();a&&(a.src=b)}this.$supers("doMouseOver_",
arguments)},doMouseOut_:function(){if(this._hover){var b=this.getImageNode();b&&(b.src=this._src||"")}this.$supers("doMouseOut_",arguments)},domAttrs_:function(b){var a=this.$supers("domAttrs_",arguments);b&&b.content||(a+=this.contentAttrs_());return a},contentAttrs_:function(){var b=' src="'+(this._src||"")+'"',a;if(a=this._align)b+=' align="'+a+'"';if(a=this._hspace)b+=' hspace="'+a+'"';if(a=this._vspace)b+=' vspace="'+a+'"';return b}});
