var Nw=I.ea(Gw,"AdfDhtmlSelectManyListboxPeer");m("AdfDhtmlSelectManyListboxPeer",Nw);Nw.C=function(){I.hc(this,AdfUIEditableValue.SUBMITTED_VALUE,AdfUISelectMany.st,AdfRichSelectManyListbox.LABEL);I.sb(this,AdfRichSelectManyListbox.LABEL);I.ra(this,D.wb,D.Pc,D.Nd,D.Bd,D.Bc);this.QE="tabIndex"};m("AdfDhtmlSelectManyListboxPeer.InitSubclass",Nw.C);
Nw.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.Pr(d,b,e.shiftKey);e.shiftKey&&a.cancel()}};r.a("AdfDhtmlSelectManyListboxPeer.prototype.HandleComponentMouseDown",{Fa:Nw.prototype.Fa});
Nw.prototype.M=function(a){Nw.h.M.call(this,a);var b=a.X();if((b=this.Wv(b,a))&&"INPUT"==b.tagName){var d=b.getAttribute("id"),e=this.f(),f=this.i();d==I.j(e.g(),Gw.uEa)?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:Nw.prototype.M});
Nw.prototype.cc=function(a,b){Nw.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.Jq(a);null!=e&&(e.checked=d.checked,this.xi(e))}}};r.a("AdfDhtmlSelectManyListboxPeer.prototype.Validate",{cc:Nw.prototype.cc});Nw.prototype.Ta=function(a){Nw.h.Ta.call(this,a);a=this.i();(a=J.Ee(a))&&!C.sa(a,Gw.lR)&&C.w(a.parentNode.parentNode,Gw.lR)};r.a("AdfDhtmlSelectManyListboxPeer.prototype.HandleComponentFocus",{Ta:Nw.prototype.Ta});
Nw.prototype.Lb=function(){var a=this.i();(a=J.Ee(a))&&C.O(a.parentNode.parentNode,Gw.lR)};r.a("AdfDhtmlSelectManyListboxPeer.prototype.HandleComponentBlur",{Lb:Nw.prototype.Lb});
Nw.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.Ho(f,g,b))&&h!=b&&(this.Pr(g,h,d.shiftKey),d.shiftKey&&this.cc(f,this.qJ(f,g)),h.focus());a.cancel();break;case w.$i:case w.Fo:d.shiftKey&&(b=e==w.$i?this.Ho(f,g,null):this.FD(f,g,null,!0),this.Pr(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:Nw.prototype.ma});Nw.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.Jq(a);null!=a&&(a.checked=b,this.xi(a))}};r.a("AdfDhtmlSelectManyListboxPeer.prototype.SetDisplayValue",{Ba:Nw.prototype.Ba});Nw.prototype.Oa=function(){return ii.jd()};
r.a("AdfDhtmlSelectManyListboxPeer.prototype.GetInlineEditor",{Oa:Nw.prototype.Oa});Nw.prototype.Pr=function(a,b,d){var e=J.Ee(a);e!=b&&(d&&(d=this.f(),this.kK(d,a,e,b)),e&&(e.setAttribute(Nw.QE,"-1"),C.O(e.parentNode.parentNode,Gw.lR)),b.setAttribute(Nw.QE,"0"))};