var A_T=AdfRichUIPeer.createPeerClass(A_S,"AdfDhtmlBaseResourceUtilizationGanttPeer",A_c);A_h("AdfDhtmlBaseResourceUtilizationGanttPeer",A_T);A_T.InitSubclass=function(){this.Sb="resId";this.Ep="rbar";this.Vi="_cpProp";this.op="_bCreateRes";(this.Bf={})[this.op]="createResource";(this.yf={})[this.Vi]="properties";this.qh=A_c;this.UD=25;this.Pl="p_AFSelected";this.Yg="p_AFFocused"};A_h("AdfDhtmlBaseResourceUtilizationGanttPeer.InitSubclass",A_T.InitSubclass);
A_T.QL=function(a,b,c){b=A_Qc(AdfPage.PAGE.findComponent(a).getPeer(),b);if(b!=A_&&b.Ia!=A_)var d=A_T.gy(b.Ia,c);d!=A_&&(a=AdfPage.PAGE.findComponent(a).getPeer(),a.Ub=d,A_k.sa(d,A_T.Yg))};A_h("AdfDhtmlBaseResourceUtilizationGanttPeer.selectTimeBucketByRow",A_T.QL);A_T.gy=function(a,b){if("DIV"==a.nodeName){var c=AdfAgent.AGENT.getAttribute(a,AdfDhtmlBaseGanttPeer.p);if(c!=A_&&c==b)return a}for(c=0;c<a.childNodes.length;c++){var d=A_T.gy(a.childNodes[c],b);if(d!=A_)return d}return A_};
function A_sd(a,b){var c=b.getNativeEventTarget();return a.bf(c)}A_T.prototype.bf=function(a){if(a!=A_&&"DIV"==a.nodeName){if(a.getAttribute(AdfDhtmlBaseGanttPeer.p)!=A_)return a;if(a.parentNode!=A_){if(a.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.p)!=A_)return a.parentNode;if(a.parentNode.parentNode!=A_&&a.parentNode.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.p)!=A_)return a.parentNode.parentNode}}return A_};
A_T.prototype.Rk=function(a){this.Ub!=A_&&(A_k.ja(this.Ub,A_T.Yg)?A_k.S(this.Ub,A_T.Yg):A_k.ja(this.Ub,A_T.Pl)&&A_k.S(this.Ub,A_T.Pl));this.Ub=a;A_k.sa(a,A_T.Yg);var b=a.getAttribute(AdfDhtmlBaseGanttPeer.p),c=a.parentNode.getAttribute(A_T.Sb),d=A_N(this,a),e=this.getComponent();a=a.getAttribute("data-tooltip")==A_?a.parentNode.id:A_;b=new A_td(e,c,d,b,A_,A_,a);b.setPartial(A_b);e.queueEvent(b)};A_h("AdfDhtmlBaseResourceUtilizationGanttPeer.prototype.selectTimeBucket",A_T.prototype.Rk);
A_T.prototype.Jg=function(a){var b=A_sd(this,a);b!=A_&&(a={},a.bucketId=b.getAttribute(AdfDhtmlBaseGanttPeer.p),a.resourceId=b.parentNode.getAttribute(A_T.Sb),b=this.getComponent(),a=new A_Hc(b,a),a.setPartial(A_b),b.queueEvent(a))};A_h("AdfDhtmlBaseResourceUtilizationGanttPeer.prototype.HandleComponentDblClick",A_T.prototype.Jg);A_T.prototype.ia=function(a){a=A_sd(this,a);a!=A_&&(this.Rk(a),this.Ob(a),this.C=a)};A_h("AdfDhtmlBaseResourceUtilizationGanttPeer.prototype.HandleComponentClick",A_T.prototype.ia);
A_T.prototype.ab=function(a){A_T.superclass.ab.call(this,a);var b=A_sd(this,a);if(b!=A_){this.Rk(b);a=a.getNativeEvent();var b=this.getComponent(),c=b.getClientId()+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseGanttPeer.la;this.showContextMenu(a,A_Mc(this),b,A_,A_,c)}};A_h("AdfDhtmlBaseResourceUtilizationGanttPeer.prototype.HandleComponentContextMenu",A_T.prototype.ab);A_h("AdfDhtmlBaseResourceUtilizationGanttPeer.prototype.HandleComponentContextMenu",A_T.prototype.ab);
function A_ud(a){a=a.getComponent().getClientId()+"::handle";return document.getElementById(a)}A_T.prototype.HandleComponentAction=function(a){if(a.getSource().getClientId()!==this.getComponent().getClientId()){A_T.superclass.HandleComponentAction.call(this,a);var b=a.getSource();if(!b.getDisabled()){var b=b.getClientId(),c=A_T.Bf,d;for(d in c)if(0<=b.indexOf(d)){this.ff(c[d]);a.cancel();return}c=A_T.yf;for(d in c)if(0<=b.indexOf(d)){this[c[d]].call(this,a);a.cancel();break}}}};
A_h("AdfDhtmlBaseResourceUtilizationGanttPeer.prototype.HandleComponentAction",A_T.prototype.HandleComponentAction);A_T.prototype.ci=A_f(A_b);A_T.prototype.kf=function(a,b){if(a.getAttribute(AdfDhtmlBaseGanttPeer.p)!=A_){if("down"==b||"up"==b)for(var c=this.FH.getAttribute(AdfDhtmlBaseGanttPeer.p),d=0;d<a.parentNode.childNodes.length;d++){var e=a.parentNode.childNodes[d],f=e.getAttribute(AdfDhtmlBaseGanttPeer.p);if(f!=A_&&f==c){this.C=a=e;break}}this.Rk(a)}};
A_T.prototype.Kh=function(){this.FH=this.Ub;this.Ub!=A_&&(A_k.ja(this.Ub,A_T.Yg)?A_k.S(this.Ub,A_T.Yg):A_k.ja(this.Ub,A_T.Pl)&&A_k.S(this.Ub,A_T.Pl))};A_T.prototype.gi=function(){var a="",b="";if(this.Ub!=A_){var a=A_N(this,this.Ub),b=this.Ub.getAttribute(AdfDhtmlBaseGanttPeer.p),c={actionType:"properties"};c.bucketId=b;c.rowKey=a;a=this.getComponent();c=new A_R(a,c);c.setPartial(A_b);a.queueEvent(c)}};A_h("AdfDhtmlBaseResourceUtilizationGanttPeer.prototype.properties",A_T.prototype.gi);
A_T.prototype.Ob=function(a){if(!(this.Va!=A_&&this.Va==a)){this.Va!=A_&&this.Va.removeAttribute("tabIndex");this.Va=a;if(!a.getAttribute("data-mf")){var b=a.getAttribute("data-df");b==A_&&(b=a.getAttribute(AdfDhtmlBaseGanttPeer.p),b=new Date(b.substr(4,4),b.substr(0,2)-1,b.substr(2,2),b.substr(8,2),b.substr(10,2),b.substr(12,2),0));var c=a.getAttribute("aria-label");c==A_&&(c=A_Q(this,"ndt"));var d=A_Q(this,"tbs"),d=d.concat(" "),d=A_id(this,d,A_Q(this,"t"),b);c!=A_&&(d=d.concat(c));a.setAttribute("aria-label",
d);a.setAttribute("data-mf",A_b)}A_T.superclass.Ob.call(this,a)}};A_T.prototype.xk=function(a){a=AdfDhtmlBaseGanttPeer.Oh(a);return a.firstChild};A_T.prototype.fs=function(a){this.Rk(a);this.Ob(a);this.C=a};