(function(){var a=false;JUI.Class("View",{init:function(b){this.cmp=b;this.createOuter()},buildDirectiveName:function(b){return b+this.cmp.id},createOuter:function(){this.$wraper=$("<div></div>").css({position:this.opt("position")});if(this.opt("zindex")){this.setZIndex(this.opt("zindex"))}if(this.opt("autoHide")){this.$wraper.hide()}},setZIndex:function(b){this.$wraper.css({"z-index":b})},getZIndex:function(){return this.$wraper.css("z-index")},getTemplate:function(){alert("类"+this.getClassName()+"必须重写View.getTemplate()")},render:function(d){var c=this.getWraper();var b=d||this.getRenderDom();this.$tpl=this.getTemplate();c.html(this.$tpl);$(b).append(c);this.afterRender()},getRenderDom:function(){var b=this.opt("renderId");return b&&typeof b==="string"?document.getElementById(b):document.body},afterRender:function(){this.cmp.fire("RenderSuccess",{dom:this.$wraper,cmp:this.cmp})},getWraper:function(){return this.$wraper},opt:function(c,b){return this.cmp.opt(c,b)},refresh:function(){},show:function(){this.getWraper().show()},hide:function(){this.getWraper().hide()}})})();