var uB=I.ea(I,"AdfDhtmlTrainPeer",!1);m("AdfDhtmlTrainPeer",uB);
uB.prototype.G=function(a,b){var d=b.getElementsByTagName("table")[0];this.Pc="vertical"==a.getLayout();if(null!=d){if(this.rU=this.Pc?d.rows:d.rows[0].cells,this.jMa=!0,!this.Pc&&q.b.S()==q.ed&&1.9>q.b.Ib())for(var e,d=-1,f=q.oa();e=this.rU[++d];)if(e=e.getElementsByTagName("tr")[1])if(e=e.getElementsByTagName("div")[0]){var g=f.getComputedStyle(e);if(g=f.ik(g,"width"))length=q.Ma(g),0<length&&(e.style.width=length+4+"px")}}else this.jMa=!1};r.a("AdfDhtmlTrainPeer.prototype.InitDomElement",{G:uB.prototype.G});
uB.C=function(){this.H3a="AFOverflowElement";this.Z3a="parentStart";this.Y3a="parentEnd"};m("AdfDhtmlTrainPeer.InitSubclass",uB.C);uB.prototype.ya=function(){return!0};r.a("AdfDhtmlTrainPeer.prototype.needsResizeNotify",{ya:uB.prototype.ya});
uB.prototype.Qe=function(a){this.i();if(!this.Va){a=a.g();if(!this.jMa||!pl.y$(a))return;this.Va=new pl(a,this,"both","after",this.Pc?"vertical":"horizontal");for(var b,d=-1;b=this.rU[++d];)if(!uB.$La(b,a)){this.Va.Lp();this.Va.addElement(b);var e=d,f=a;0<e&&vB(this,this.rU[e-1],f);vB(this,this.rU[e+1],f,!0);b=this.rF(b);this.Va.Vr(b)}}this.Va.te()};r.a("AdfDhtmlTrainPeer.prototype.resizeNotify",{Qe:uB.prototype.Qe});
uB.prototype.ka=function(a){delete this.rU;this.Va&&(this.Va.Yy(),delete this.Va);uB.h.ka.call(this,a)};r.a("AdfDhtmlTrainPeer.prototype.ComponentRemoved",{ka:uB.prototype.ka});function vB(a,b,d,e){b&&!uB.$La(b,d)&&(b=b.getElementsByTagName("table")[0],(e=a.Pc?b.rows[e?0:2].cells[1]:b.rows[0].cells[e?0:2])&&e.firstChild&&a.Va.addElement(a.Pc?e:e.firstChild))}
uB.prototype.rF=function(a){var b=a.ownerDocument.createElement("div"),d=A.c.H();C.w(b,d.getStyleClass(uB.H3a));var d=a.id,e=A.c.m(d);a=(this.Pc?a.cells[1].getElementsByTagName("a")[0]:a.getElementsByTagName("tr")[1].getElementsByTagName("a")[0]).cloneNode(!0);b.appendChild(a);e.getDisabled()||(a.href="#",a.onclick="return false;",a.cj=d,d=this.D(this.Wnb),q.b.ba(a,"click",d));return b};uB.prototype.Wnb=function(a){a=q.b.ca(a).cj;a=A.c.m(a);ab.F(a,a.getPartialSubmit())};
uB.prototype.Od=function(a,b,d,e){b=a.g();a=xa.count(b,":");u.assert(0<=d.indexOf(b));d=d.substring(b.length+1);b=d.indexOf(":");0<b&&e.push([a+1,d.substring(0,b)])};r.a("AdfDhtmlTrainPeer.prototype.ConvertClientIdToLocator",{Od:uB.prototype.Od});uB.prototype.Sd=function(a,b){var d=this.i(),e=C.ib(d,"tbody");if(!e)return null;var f=a.getLayout();"string"==typeof b&&(b=parseInt(b));0==b?d="vertical"==f?C.pa(e):C.ib(d,"td"):(d="vertical"==f?e:C.ib(e,"tr"),d=C.Li(d,1,b));return d?d.id:null};
r.a("AdfDhtmlTrainPeer.prototype.convertLocatorToClientId",{Sd:uB.prototype.Sd});uB.$La=function(a,b){var d=I.j(b,uB.Z3a),e=I.j(b,uB.Y3a);return a.id?a.id===d||a.id===e?!0:!1:!1};