var Dn=M.U(xe,"AdfDhtmlInputTextPeer");v("AdfDhtmlInputTextPeer",Dn);Dn.m=function(){z.kb(AdfRichInputText);M.$b(this,AdfRichInputText.LABEL);M.ha(this,I.ec,I.Wf,I.qd);M.hb(this,AdfRichInputText.LABEL);M.hb(this,AdfRichInputText.READ_ONLY);M.hb(this,AdfRichInputText.CONTENT_STYLE)};v("AdfDhtmlInputTextPeer.InitSubclass",Dn.m);Dn.prototype.q=function(a,b){Dn.f.q.call(this,a,b);var d=w.b,e=U.W(a);d.G()==w.aa&&9>d.nb()?w.b.S(e,"propertychange",this.o(this.Zva)):w.b.S(e,"input",this.o(this.Zva))};
z.a("AdfDhtmlInputTextPeer.prototype.InitDomElement",{q:Dn.prototype.q});Dn.prototype.o1=function(a){var b=this.d();if(this.uo(b)){var d=U.W(b);Qc.O().fm(d,a);this.Yf(b,d)}};z.a("AdfDhtmlInputTextPeer.prototype.replaceTextSelection",{o1:Dn.prototype.o1});Dn.prototype.ja=function(a){var b=w.b,d=b.G()==w.aa,b=b.nb();return d&&8>b&&H.ta(M.fy(a),"p_AFStretched")};z.a("AdfDhtmlInputTextPeer.prototype.needsResizeNotify",{ja:Dn.prototype.ja});
Dn.prototype.se=function(a,b,d,e,f){b=w.b;a=U.W(a);b.ys(a,e);b.Hg(a,f)};z.a("AdfDhtmlInputTextPeer.prototype.resizeNotify",{se:Dn.prototype.se});Dn.prototype.xa=function(a,b,d){B.s(d);b=U.W(a);a.getReadOnly()?(1<a.getRows()||this.Nz(a)!=l)&&w.b.yb(b,d):(!(1<a.getRows())&&!this.Nz(a)&&(b.title=d),b.value=d)};z.a("AdfDhtmlInputTextPeer.prototype.SetDisplayValue",{xa:Dn.prototype.xa});Dn.prototype.Nz=function(a){return"password"==U.W(a).type?l:p};z.a("AdfDhtmlInputTextPeer.prototype.IsSecret",{Nz:Dn.prototype.Nz});
Dn.prototype.zb=function(a){this.Li(a);if(a.dd()==Ta.ue){var b=this.d(),d=a.Q(),e=a.L(),f=w.b.ia(e);if("TEXTAREA"==d.tagName){if(ro(b,d)&&(b=e.keyCode,f=e.charCode,(0==b||13==b||f==k||b==f)&&!e.ctrlKey))e=l,d.selectionStart!=n?e=d.selectionStart==d.selectionEnd:document.selection&&(e=""==document.selection.createRange().text),e&&a.cancel()}else f==E.$a&&this.Yf(b,d);this.cu=d.value?d.value.length:0}};z.a("AdfDhtmlInputTextPeer.prototype.HandleComponentKeyPress",{zb:Dn.prototype.zb});
Dn.prototype.pa=function(a){if(a.dd()==Ta.ue){var b=w.b.ia(a.L()),d=this.d(),e=a.Q();9!=b&&this.ez(d,e);delete this.cu;ro(d,e)}Dn.f.pa.call(this,a)};z.a("AdfDhtmlInputTextPeer.prototype.HandleComponentKeyUp",{pa:Dn.prototype.pa});Dn.prototype.ba=function(a){this.Li(a)};z.a("AdfDhtmlInputTextPeer.prototype.HandleComponentKeyDown",{ba:Dn.prototype.ba});Dn.prototype.Zva=function(){var a=this.d();if(a){var b=U.W(a);ro(a,b)}};
Dn.prototype.ez=function(a,b){if(a.getAutoTab&&a.getAutoTab()&&(w.b.cd()[w.Vc]==w.Wc||w.Yh()==w.ek)){var d=a.getMaximumLength();if(!(1>d)){var e=b.value?b.value.length:0;e>=d&&e>this.cu&&O.Ud(b)}}};z.a("AdfDhtmlInputTextPeer.prototype.AutoTab",{ez:Dn.prototype.ez});Dn.prototype.Aa=function(){return mg.Hc()};z.a("AdfDhtmlInputTextPeer.prototype.GetInlineEditor",{Aa:Dn.prototype.Aa});
Dn.prototype.dka=function(a,b,d){if(d)if("SPAN"==b.tagName){if(H.ta(b,"p_AFClickToEdit")&&H.F(b,"p_AFClickToEdit"),H.n(b,"p_AFReadOnly"),a=U.W(a),"INPUT"==a.tagName){var e=document.createElement("span");e.appendChild(document.createTextNode(a.value));d=a.attributes;for(var f=0;f<d.length;f++){var g=d[f].name;"type"!=g&&"value"!=g&&e.setAttribute(g,d[f].value)}b.replaceChild(e,a)}}else return p;else if("SPAN"==b.tagName){if(H.ta(b,"p_AFReadOnly")&&H.F(b,"p_AFReadOnly"),H.n(b,"p_AFClickToEdit"),a=U.W(a),
"SPAN"==a.tagName){e=document.createElement("input");d=a.attributes;for(f=0;f<d.length;f++)e.setAttribute(d[f].name,d[f].value);e.setAttribute("type","text");a.firstChild&&a.firstChild.nodeValue&&e.setAttribute("value",a.firstChild.nodeValue);e.setAttribute("name",b.id);b.replaceChild(e,a)}}else return p};z.a("AdfDhtmlInputTextPeer.prototype.ComponentReadOnlyChanged",{dka:Dn.prototype.dka});Dn.prototype.Sja=function(a,b,d){a=U.W(a);if(a!=n)a.style.cssText=d;else return p};
z.a("AdfDhtmlInputTextPeer.prototype.ComponentContentStyleChanged",{Sja:Dn.prototype.Sja});function ro(a,b){if(a&&a.getMaximumLength){var d=a.getMaximumLength();if(1>d)return p;var e=b.value?b.value.length:0;if(e>=d)return e>d&&(b.value=b.value.substr(0,d)),l}return p};