var di=I.ea(I,"AdfDhtmlCommandButtonPeer",!0);m("AdfDhtmlCommandButtonPeer",di);di.C=function(){I.ra(this,D.wb);I.hc(this,AdfRichCommandButton.TEXT);I.sb(this,AdfRichCommandButton.TEXT);this.df="_busy"};m("AdfDhtmlCommandButtonPeer.InitSubclass",di.C);di.prototype.M=function(a){var b=this.f(),d=b.K(di.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:di.prototype.M});
di.prototype.Gf=function(){return this.f().getText()};r.a("AdfDhtmlCommandButtonPeer.prototype.GetAccessibleName",{Gf:di.prototype.Gf});di.prototype.sc=function(a,b){var d=q.b.mc(b);return""==d?null:d};r.a("AdfDhtmlCommandButtonPeer.prototype.GetComponentText",{sc:di.prototype.sc});di.prototype.Oa=function(){return ci.jd()};r.a("AdfDhtmlCommandButtonPeer.prototype.GetInlineEditor",{Oa:di.prototype.Oa});di.Mha=function(a,b){u.u(a,"BUTTON");u.dc(b);C.qd(b,a,I.lb)};
di.prototype.vd=function(a){var b=this.f(),d=this.i();!C.lf(d)||b.getDisabled()||A.c.Zg()||(di.Mha(d,a),b.setProperty(di.df,a,!1,G.ud))};r.a("AdfDhtmlCommandButtonPeer.prototype.SetBusy",{vd:di.prototype.vd});di.prototype.td=function(){var a=this.f();return a&&a.K(di.df)};r.a("AdfDhtmlCommandButtonPeer.prototype.isBusy",{td:di.prototype.td});di.prototype.Jg=function(a,b,d){return(b=di.qC(a,b))?C.FC(a,b,d):!1};r.a("AdfDhtmlCommandButtonPeer.prototype.ComponentTextChanged",{Jg:di.prototype.Jg});
di.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",di.qC);di.BVa=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",di.BVa);