var yp=I.ea(bf,"AdfDhtmlInputTextPeer");m("AdfDhtmlInputTextPeer",yp);yp.C=function(){r.bb(AdfRichInputText);I.hc(this,AdfRichInputText.LABEL);I.ra(this,D.Bc,D.hh,D.Ad);I.sb(this,AdfRichInputText.LABEL);I.sb(this,AdfRichInputText.READ_ONLY);I.sb(this,AdfRichInputText.CONTENT_STYLE)};m("AdfDhtmlInputTextPeer.InitSubclass",yp.C);yp.prototype.G=function(a,b){yp.h.G.call(this,a,b);var d=q.b,e=O.da(a);d.S()==q.ia&&9>d.Ib()?q.b.ba(e,"propertychange",this.D(this.GV)):q.b.ba(e,"input",this.D(this.GV))};
r.a("AdfDhtmlInputTextPeer.prototype.InitDomElement",{G:yp.prototype.G});yp.prototype.Q$=function(a){var b=this.f();if(this.Ll(b)){var d=O.da(b);kd.$().wo(d,a);this.nd(b,d)}};r.a("AdfDhtmlInputTextPeer.prototype.replaceTextSelection",{Q$:yp.prototype.Q$});yp.prototype.ya=function(a){var b=q.b,d=b.S()==q.ia,b=b.Ib();return d&&8>b&&C.sa(I.py(a),"p_AFStretched")};r.a("AdfDhtmlInputTextPeer.prototype.needsResizeNotify",{ya:yp.prototype.ya});
yp.prototype.Re=function(a,b,d,e,f){b=q.b;a=O.da(a);b.wv(a,e);b.Fh(a,f)};r.a("AdfDhtmlInputTextPeer.prototype.resizeNotify",{Re:yp.prototype.Re});yp.prototype.Ba=function(a,b,d){u.J(d);b=O.da(a);a.getReadOnly()?(1<a.getRows()||1!=this.WD(a))&&q.b.bc(b,d):(1<a.getRows()||this.WD(a)||(b.title=d),b.value!=d&&(b.value=d))};r.a("AdfDhtmlInputTextPeer.prototype.SetDisplayValue",{Ba:yp.prototype.Ba});yp.prototype.WD=function(a){return"password"==O.da(a).type?!0:!1};
r.a("AdfDhtmlInputTextPeer.prototype.IsSecret",{WD:yp.prototype.WD});yp.prototype.Yb=function(a){this.Il(a);if(a.Wd()==Qa.Ef){var b=this.f(),d=a.X(),e=a.U(),f=q.b.na(e);"TEXTAREA"==d.tagName?this.OQ(b,d)&&(b=e.keyCode,f=e.charCode,0!=b&&13!=b&&void 0!=f&&b!=f||e.ctrlKey||(e=!0,null!=d.selectionStart?e=d.selectionStart==d.selectionEnd:document.selection&&(e=""==document.selection.createRange().text),e&&a.cancel())):f==w.jb&&this.nd(b,d,!0);this.Ex=d.value?d.value.length:0}};
r.a("AdfDhtmlInputTextPeer.prototype.HandleComponentKeyPress",{Yb:yp.prototype.Yb});yp.prototype.za=function(a){if(a.Wd()==Qa.Ef){var b=q.b.na(a.U()),d=this.f(),e=a.X();9!=b&&this.hD(d,e);delete this.Ex}yp.h.za.call(this,a)};r.a("AdfDhtmlInputTextPeer.prototype.HandleComponentKeyUp",{za:yp.prototype.za});yp.prototype.ma=function(a){this.Il(a)};r.a("AdfDhtmlInputTextPeer.prototype.HandleComponentKeyDown",{ma:yp.prototype.ma});
yp.prototype.GV=function(a){a=q.b.ca(a);if(a=A.c.m(q.b.getAttribute(a,"name"))){var b=O.da(a);this.OQ(a,b)}};yp.prototype.hD=function(a,b){if(a.getAutoTab&&a.getAutoTab()&&(q.b.rm()[q.zl]==q.Al||q.Ch()==q.yl)){var d=a.getMaximumLength();if(!(1>d)){var e=b.value?b.value.length:0;e>=d&&e>=this.Ex&&J.ce(b)}}};r.a("AdfDhtmlInputTextPeer.prototype.AutoTab",{hD:yp.prototype.hD});yp.prototype.Oa=function(){return ii.jd()};r.a("AdfDhtmlInputTextPeer.prototype.GetInlineEditor",{Oa:yp.prototype.Oa});
yp.prototype.Kwa=function(a,b,d){if(d)if("SPAN"==b.tagName){if(C.sa(b,"p_AFClickToEdit")&&C.O(b,"p_AFClickToEdit"),C.w(b,"p_AFReadOnly"),a=O.da(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);q.b.Ia(e)}}else return!1;else if("SPAN"==b.tagName){if(C.sa(b,"p_AFReadOnly")&&C.O(b,"p_AFReadOnly"),C.w(b,"p_AFClickToEdit"),
a=O.da(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);q.b.Ia(e)}}else return!1};r.a("AdfDhtmlInputTextPeer.prototype.ComponentReadOnlyChanged",{Kwa:yp.prototype.Kwa});yp.prototype.wwa=function(a,b,d){a=O.da(a);if(null!=a)a.style.cssText=d;else return!1};
r.a("AdfDhtmlInputTextPeer.prototype.ComponentContentStyleChanged",{wwa:yp.prototype.wwa});