zul.med.Applet=zk.$extends(zul.Widget,{$init:function(){this._params={};this.$supers("$init",arguments)},$define:{code:_zkf=function(){this.rerender()},codebase:_zkf,archive:_zkf,mayscript:function(a){var b;if(b=this.$n())b.mayscript=a},align:function(a){var b;if(b=this.$n())b.align=a},hspace:function(a){var b;if(b=this.$n())b.hspace=a},vspace:function(a){var b;if(b=this.$n())b.vspace=a}},invoke:zk.ie?function(){var a=this.$n(),b=arguments.length;if(a&&1<=b){var c=arguments[0];try{if(1===b)a[c]();
else if(2===b)a[c](arguments[1]);else{var d=Array.apply(null,arguments);d.shift();a[c](d)}}catch(e){zk.error("Failed to invoke applet's method: "+c+"\n"+e.message)}}}:function(){var a=this.$n();if(a&&1<=arguments.length){var b=arguments[0],c=a[b];if(c)try{var d=[],e=[];if(3>arguments.length)arguments[1]&&d.push(arguments[1]);else{for(var f=1,g=arguments.length;f<g;)e.push(arguments[f++]);d.push(e)}c.apply(a,d)}catch(h){zk.error("Failed to invoke applet's method: "+b+"\n"+h.message)}else zk.error("Method not found: "+
b)}},getField:function(a){var b=this.$n();return b?b[a]:null},setField:function(a,b){var c=this.$n();if(c)try{c[a]=b}catch(d){zk.error("Failed to set applet's field: "+a+"\n"+d.message)}},setParam:function(a,b){1==arguments.length&&(b=a[1],a=a[0]);null!=b?this._params[a]=b:delete this._params[a]},setParams:function(a){this._params=a},domAttrs_:function(a){return this.$supers("domAttrs_",arguments)+' code="'+(this._code||"")+'"'+zUtl.appendAttr("codebase",this._codebase)+zUtl.appendAttr("archive",
this._archive)+zUtl.appendAttr("align",this._align)+zUtl.appendAttr("hspace",this._hspace)+zUtl.appendAttr("vspace",this._vspace)+zUtl.appendAttr("mayscript",this._mayscript)},domStyle_:function(a){return this.$supers("domStyle_",arguments)+"visibility:visible;"},_outParamHtml:function(a){var b=this._params,c;for(c in b)a.push('<param name="',zUtl.encodeXML(c),'" value="',zUtl.encodeXML(b[c]),'"/>')}});
