var Lw=I.ea(Ew,"AdfDhtmlSelectManyListboxPeer");m("AdfDhtmlSelectManyListboxPeer",Lw);Lw.C=function(){I.hc(this,AdfUIEditableValue.SUBMITTED_VALUE,AdfUISelectMany.rt,AdfRichSelectManyListbox.LABEL);I.sb(this,AdfRichSelectManyListbox.LABEL);I.ra(this,D.wb,D.Oc,D.Nd,D.Bd,D.Bc);this.QE="tabIndex"};m("AdfDhtmlSelectManyListboxPeer.InitSubclass",Lw.C);
Lw.prototype.Fa=function(a){var b=a.X();"LABEL"==b.tagName?b=C.pa(b):"LI"==b.tagName&&(b=C.pa(b))&&(b=C.pa(b));if(b&&"INPUT"==b.tagName&&!b.disabled){var d=this.i(),e=a.U();this.Or(d,b,e.shiftKey);e.shiftKey&&a.cancel()}};r.a("AdfDhtmlSelectManyListboxPeer.prototype.HandleComponentMouseDown",{Fa:Lw.prototype.Fa});
Lw.prototype.M=function(a){Lw.h.M.call(this,a);var b=a.X();if((b=this.Vv(b,a))&&"INPUT"==b.tagName){var d=b.getAttribute("id"),e=this.f(),f=this.i();d==I.j(e.g(),Ew.qEa)?this.uK(e,f,b.checked,!0):(a.U().shiftKey&&(b.checked=!0),this.xi(b),a=this.qJ(e,f),this.cc(e,a))}};r.a("AdfDhtmlSelectManyListboxPeer.prototype.HandleComponentClick",{M:Lw.prototype.M});
Lw.prototype.cc=function(a,b){Lw.h.cc.call(this,a,b);if(a.getRequired()){var d=this.kd(a,this.i());if(d&&1==d.length){var d=d[0],e=this.Iq(a);null!=e&&(e.checked=d.checked,this.xi(e))}}};r.a("AdfDhtmlSelectManyListboxPeer.prototype.Validate",{cc:Lw.prototype.cc});Lw.prototype.Ta=function(a){Lw.h.Ta.call(this,a);a=this.i();(a=J.Ee(a))&&!C.sa(a,Ew.lR)&&C.w(a.parentNode.parentNode,Ew.lR)};r.a("AdfDhtmlSelectManyListboxPeer.prototype.HandleComponentFocus",{Ta:Lw.prototype.Ta});
Lw.prototype.Lb=function(){var a=this.i();(a=J.Ee(a))&&C.O(a.parentNode.parentNode,Ew.lR)};r.a("AdfDhtmlSelectManyListboxPeer.prototype.HandleComponentBlur",{Lb:Lw.prototype.Lb});
Lw.prototype.ma=function(a){var b=a.X(),d=a.U(),e=q.b.na(d),f=a.getSource(),g=this.i();if("INPUT"==b.tagName)switch(e){case w.ab:case w.Ra:var b=J.Ee(g),h;(h=e==w.ab?this.FD(f,g,b):this.Go(f,g,b))&&h!=b&&(this.Or(g,h,d.shiftKey),d.shiftKey&&this.cc(f,this.qJ(f,g)),h.focus());a.cancel();break;case w.Yi:case w.Eo:d.shiftKey&&(b=e==w.Yi?this.Go(f,g,null):this.FD(f,g,null,!0),this.Or(g,b,!0),b.focus(),this.cc(f,this.qJ(f,g)))}switch(e){case w.GQ:d.ctrlKey&&(this.uK(f,g,!0,!0),a.cancel())}};
r.a("AdfDhtmlSelectManyListboxPeer.prototype.HandleComponentKeyDown",{ma:Lw.prototype.ma});Lw.prototype.Ba=function(a,b,d){u.u(b);u.Mb(d);if(a.getReadOnly())return!1;var e=this.kd(a,b);if(e){b=!0;for(var f=0;f<e.length;f++){var g=e[f],h=E.indexOf(d,g.value);g.checked=0<=h;this.xi(g);g.checked||g.disabled||(b=!1)}a=this.Iq(a);null!=a&&(a.checked=b,this.xi(a))}};r.a("AdfDhtmlSelectManyListboxPeer.prototype.SetDisplayValue",{Ba:Lw.prototype.Ba});Lw.prototype.Oa=function(){return gi.jd()};
r.a("AdfDhtmlSelectManyListboxPeer.prototype.GetInlineEditor",{Oa:Lw.prototype.Oa});Lw.prototype.Or=function(a,b,d){var e=J.Ee(a);e!=b&&(d&&(d=this.f(),this.kK(d,a,e,b)),e&&(e.setAttribute(Lw.QE,"-1"),C.O(e.parentNode.parentNode,Ew.lR)),b.setAttribute(Lw.QE,"0"))};