var bi=I.ea(I,"AdfDhtmlCommandButtonPeer",!0);m("AdfDhtmlCommandButtonPeer",bi);bi.C=function(){I.ra(this,D.wb);I.hc(this,AdfRichCommandButton.TEXT);I.sb(this,AdfRichCommandButton.TEXT);this.df="_busy"};m("AdfDhtmlCommandButtonPeer.InitSubclass",bi.C);bi.prototype.M=function(a){var b=this.f(),d=b.K(bi.df);b.getDisabled()||!a.ec()||d||ab.F(b,b.getPartialSubmit());q.b.rm()[q.zl]==q.Al&&(a=a.U(),q.b.Ea(a))};r.a("AdfDhtmlCommandButtonPeer.prototype.HandleComponentClick",{M:bi.prototype.M});
bi.prototype.Gf=function(){return this.f().getText()};r.a("AdfDhtmlCommandButtonPeer.prototype.GetAccessibleName",{Gf:bi.prototype.Gf});bi.prototype.sc=function(a,b){var d=q.b.mc(b);return""==d?null:d};r.a("AdfDhtmlCommandButtonPeer.prototype.GetComponentText",{sc:bi.prototype.sc});bi.prototype.Oa=function(){return ai.jd()};r.a("AdfDhtmlCommandButtonPeer.prototype.GetInlineEditor",{Oa:bi.prototype.Oa});bi.Kha=function(a,b){u.u(a,"BUTTON");u.dc(b);C.qd(b,a,I.lb)};
bi.prototype.vd=function(a){var b=this.f(),d=this.i();!C.lf(d)||b.getDisabled()||A.c.Zg()||(bi.Kha(d,a),b.setProperty(bi.df,a,!1,G.ud))};r.a("AdfDhtmlCommandButtonPeer.prototype.SetBusy",{vd:bi.prototype.vd});bi.prototype.td=function(){var a=this.f();return a&&a.K(bi.df)};r.a("AdfDhtmlCommandButtonPeer.prototype.isBusy",{td:bi.prototype.td});bi.prototype.Jg=function(a,b,d){return(b=bi.qC(a,b))?C.FC(a,b,d):!1};r.a("AdfDhtmlCommandButtonPeer.prototype.ComponentTextChanged",{Jg:bi.prototype.Jg});
bi.qC=function(a,b){var d=C.Dc(b),e=d.length;if(0==e)return b;if(1==e){d=d[0];if("IMG"==d.tagName){var f=q.b.R(),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;v.l.severe("Unexpected DOM structure 2 elements neither is an IMG in AdfDhtmlCommandButtonPeer.getInlineEditableTextElement (1 \x3d "+
e+", 2 \x3d "+d+").");return null}v.l.severe("Unexpected number of child elements in AdfDhtmlCommandButtonPeer.getInlineEditableTextElement ("+e+"): "+d);return null};m("AdfDhtmlCommandButtonPeer.getInlineEditableTextElement",bi.qC);bi.xVa=function(a,b){var d=C.Dc(b);if(2==d.length){var e=d[0],d=d[1],f=null;"IMG"==e.tagName?"SPAN"==d.tagName&&(f=d):"IMG"==d.tagName&&"SPAN"==e.tagName&&(f=e);null!=f&&""==f.innerHTML&&f.parentNode.removeChild(f)}};
m("AdfDhtmlCommandButtonPeer.stopInlineEditableTextElement",bi.xVa);