var hg=M.U(M,"AdfDhtmlCommandButtonPeer",l);v("AdfDhtmlCommandButtonPeer",hg);hg.m=function(){M.ha(this,I.jb);M.$b(this,AdfRichCommandButton.TEXT);M.hb(this,AdfRichCommandButton.TEXT);this.ve="_busy"};v("AdfDhtmlCommandButtonPeer.InitSubclass",hg.m);hg.prototype.C=function(a){var b=this.d(),d=b.r(hg.ve);!b.getDisabled()&&(a.Jb()&&!d)&&bb.v(b,b.getPartialSubmit());w.b.cd()[w.Vc]==w.Wc&&(a=a.L(),w.b.va(a))};z.a("AdfDhtmlCommandButtonPeer.prototype.HandleComponentClick",{C:hg.prototype.C});
hg.prototype.Te=function(){return this.d().getText()};z.a("AdfDhtmlCommandButtonPeer.prototype.GetAccessibleName",{Te:hg.prototype.Te});hg.prototype.Xb=function(a,b){var d=w.b.Mb(b);return""==d?n:d};z.a("AdfDhtmlCommandButtonPeer.prototype.GetComponentText",{Xb:hg.prototype.Xb});hg.prototype.Aa=function(){return gg.Hc()};z.a("AdfDhtmlCommandButtonPeer.prototype.GetInlineEditor",{Aa:hg.prototype.Aa});hg.v8=function(a,b){B.p(a,"BUTTON");B.pc(b);H.td(b,a,M.gb)};
hg.prototype.gd=function(a){var b=this.d(),d=this.h();H.Se(d)&&(!b.getDisabled()&&!F.c.Dg())&&(hg.v8(d,a),b.setProperty(hg.ve,a,p,J.Pc))};z.a("AdfDhtmlCommandButtonPeer.prototype.SetBusy",{gd:hg.prototype.gd});hg.prototype.od=function(){var a=this.d();return a&&a.r(hg.ve)};z.a("AdfDhtmlCommandButtonPeer.prototype.isBusy",{od:hg.prototype.od});hg.prototype.Qf=function(a,b,d){return(b=hg.ky(a,b))?H.zy(a,b,d):p};z.a("AdfDhtmlCommandButtonPeer.prototype.ComponentTextChanged",{Qf:hg.prototype.Qf});
hg.ky=function(a,b){var d=H.Tc(b),e=d.length;if(0==e)return b;if(1==e){d=d[0];if("IMG"==d.tagName){var f=w.b.w(),e=f.createElement("SPAN");e.appendChild(f.createTextNode(""));f=e.style;f.padding="3px";f.whiteSpace="nowrap";a.getIconPosition&&"leading"!=a.getIconPosition()?b.insertBefore(e,d):b.appendChild(e);return e}return b}if(2==e){e=d[0];d=d[1];if("IMG"==e.tagName)return d;if("IMG"==d.tagName)return e;D.i.severe("Unexpected DOM structure 2 elements neither is an IMG in AdfDhtmlCommandButtonPeer.getInlineEditableTextElement (1 \x3d "+
e+", 2 \x3d "+d+").");return n}D.i.severe("Unexpected number of child elements in AdfDhtmlCommandButtonPeer.getInlineEditableTextElement ("+e+"): "+d);return n};v("AdfDhtmlCommandButtonPeer.getInlineEditableTextElement",hg.ky);hg.FEa=function(a,b){var d=H.Tc(b);if(2==d.length){var e=d[0],d=d[1],f=n;"IMG"==e.tagName?"SPAN"==d.tagName&&(f=d):"IMG"==d.tagName&&"SPAN"==e.tagName&&(f=e);f!=n&&""==f.innerHTML&&f.parentNode.removeChild(f)}};v("AdfDhtmlCommandButtonPeer.stopInlineEditableTextElement",hg.FEa);