var Fu=M.U(yu,"AdfDhtmlSelectManyListboxPeer");v("AdfDhtmlSelectManyListboxPeer",Fu);Fu.m=function(){M.$b(this,AdfUIEditableValue.SUBMITTED_VALUE,AdfUISelectMany.Dq,AdfRichSelectManyListbox.LABEL);M.hb(this,AdfRichSelectManyListbox.LABEL);M.ha(this,I.jb,I.tc,I.Dd,I.Xc,I.ec);this.f6a="all";this.sJa="disabled";this.tA="tabIndex"};v("AdfDhtmlSelectManyListboxPeer.InitSubclass",Fu.m);
Fu.prototype.qa=function(a){var b=a.Q();"LABEL"==b.tagName?b=H.ca(b):"LI"==b.tagName&&(b=H.ca(b))&&(b=H.ca(b));if(b&&"INPUT"==b.tagName&&!b.disabled){var d=this.h(),e=a.L();this.dp(d,b,e.shiftKey);e.shiftKey&&a.cancel()}};z.a("AdfDhtmlSelectManyListboxPeer.prototype.HandleComponentMouseDown",{qa:Fu.prototype.qa});
Fu.prototype.C=function(a){Fu.f.C.call(this,a);var b=a.Q();if((b=this.Ss(b,a))&&"INPUT"==b.tagName){var d=b.getAttribute("id"),e=this.d(),f=this.h();d==M.g(e.e(),yu.Dqa)?this.aF(e,f,b.checked,l):(a.L().shiftKey&&(b.checked=l),this.Ch(b),a=this.dE(e,f),this.Yb(e,a))}};z.a("AdfDhtmlSelectManyListboxPeer.prototype.HandleComponentClick",{C:Fu.prototype.C});
Fu.prototype.Yb=function(a,b){Fu.f.Yb.call(this,a,b);if(a.getRequired()){var d=this.Xd(a,this.h());if(d&&1==d.length){var d=d[0],e=this.jo(a);e!=n&&(e.checked=d.checked,this.Ch(e))}}};z.a("AdfDhtmlSelectManyListboxPeer.prototype.Validate",{Yb:Fu.prototype.Yb});Fu.prototype.Ha=function(a){Fu.f.Ha.call(this,a);a=this.h();(a=O.Re(a))&&!H.ta(a,yu.OK)&&H.n(a.parentNode.parentNode,yu.OK)};z.a("AdfDhtmlSelectManyListboxPeer.prototype.HandleComponentFocus",{Ha:Fu.prototype.Ha});
Fu.prototype.Eb=function(){var a=this.h();(a=O.Re(a))&&H.F(a.parentNode.parentNode,yu.OK)};z.a("AdfDhtmlSelectManyListboxPeer.prototype.HandleComponentBlur",{Eb:Fu.prototype.Eb});
Fu.prototype.ba=function(a){var b=a.Q(),d=a.L(),e=w.b.ia(d),f=a.getSource(),g=this.h();if("INPUT"==b.tagName)switch(e){case E.Ya:case E.Ja:var b=O.Re(g),h;if((h=e==E.Ya?this.yz(f,g,b):this.wz(f,g,b))&&h!=b)this.dp(g,h,d.shiftKey),d.shiftKey&&this.Yb(f,this.dE(f,g)),h.focus();a.cancel();break;case E.fi:case E.nm:d.shiftKey&&(b=e==E.fi?this.wz(f,g,n):this.yz(f,g,n,l),this.dp(g,b,l),b.focus(),this.Yb(f,this.dE(f,g)))}switch(e){case E.oK:d.ctrlKey&&(this.aF(f,g,l,l),a.cancel())}};
z.a("AdfDhtmlSelectManyListboxPeer.prototype.HandleComponentKeyDown",{ba:Fu.prototype.ba});Fu.prototype.xa=function(a,b,d){B.p(b);B.yc(d);if(a.getReadOnly())return p;var e=this.Xd(a,b);if(e){b=l;for(var f=0;f<e.length;f++){var g=e[f],h=ya.indexOf(d,g.value);g.checked=0<=h;this.Ch(g);g.checked||g.disabled||(b=p)}a=this.jo(a);a!=n&&(a.checked=b,this.Ch(a))}};z.a("AdfDhtmlSelectManyListboxPeer.prototype.SetDisplayValue",{xa:Fu.prototype.xa});Fu.prototype.Aa=function(){return mg.Hc()};
z.a("AdfDhtmlSelectManyListboxPeer.prototype.GetInlineEditor",{Aa:Fu.prototype.Aa});Fu.prototype.dp=function(a,b,d){var e=O.Re(a);e!=b&&(d&&(d=this.d(),this.SE(d,a,e,b)),e&&(e.setAttribute(Fu.tA,"-1"),H.F(e.parentNode.parentNode,yu.OK)),b.setAttribute(Fu.tA,"0"))};