var wB=I.ea(I,"AdfDhtmlTrainPeer",!1);m("AdfDhtmlTrainPeer",wB);
wB.prototype.G=function(a,b){var d=b.getElementsByTagName("table")[0];this.Qc="vertical"==a.getLayout();if(null!=d){if(this.rU=this.Qc?d.rows:d.rows[0].cells,this.oMa=!0,!this.Qc&&q.b.S()==q.Yc&&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.oMa=!1};r.a("AdfDhtmlTrainPeer.prototype.InitDomElement",{G:wB.prototype.G});
wB.C=function(){this.K3a="AFOverflowElement";this.b4a="parentStart";this.a4a="parentEnd"};m("AdfDhtmlTrainPeer.InitSubclass",wB.C);wB.prototype.ya=function(){return!0};r.a("AdfDhtmlTrainPeer.prototype.needsResizeNotify",{ya:wB.prototype.ya});
wB.prototype.Re=function(a){this.i();if(!this.Va){a=a.g();if(!this.oMa||!rl.z$(a))return;this.Va=new rl(a,this,"both","after",this.Qc?"vertical":"horizontal");for(var b,d=-1;b=this.rU[++d];)if(!wB.eMa(b,a)){this.Va.Mp();this.Va.addElement(b);var e=d,f=a;0<e&&xB(this,this.rU[e-1],f);xB(this,this.rU[e+1],f,!0);b=this.rF(b);this.Va.Wr(b)}}this.Va.te()};r.a("AdfDhtmlTrainPeer.prototype.resizeNotify",{Re:wB.prototype.Re});
wB.prototype.ka=function(a){delete this.rU;this.Va&&(this.Va.Yy(),delete this.Va);wB.h.ka.call(this,a)};r.a("AdfDhtmlTrainPeer.prototype.ComponentRemoved",{ka:wB.prototype.ka});function xB(a,b,d,e){b&&!wB.eMa(b,d)&&(b=b.getElementsByTagName("table")[0],(e=a.Qc?b.rows[e?0:2].cells[1]:b.rows[0].cells[e?0:2])&&e.firstChild&&a.Va.addElement(a.Qc?e:e.firstChild))}
wB.prototype.rF=function(a){var b=a.ownerDocument.createElement("div"),d=A.c.H();C.w(b,d.getStyleClass(wB.K3a));var d=a.id,e=A.c.m(d);a=(this.Qc?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.Di=d,d=this.D(this.Wnb),q.b.ba(a,"click",d));return b};wB.prototype.Wnb=function(a){a=q.b.ca(a).Di;a=A.c.m(a);ab.F(a,a.getPartialSubmit())};
wB.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:wB.prototype.Od});wB.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.Mi(d,1,b));return d?d.id:null};
r.a("AdfDhtmlTrainPeer.prototype.convertLocatorToClientId",{Sd:wB.prototype.Sd});wB.eMa=function(a,b){var d=I.j(b,wB.b4a),e=I.j(b,wB.a4a);return a.id?a.id===d||a.id===e?!0:!1:!1};