var AdfDhtmlResourceUtilizationGanttPeer=AdfRichUIPeer.createPeerClass(A_T,"AdfDhtmlResourceUtilizationGanttPeer",A_c);A_h("AdfDhtmlResourceUtilizationGanttPeer",AdfDhtmlResourceUtilizationGanttPeer);AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.gantt.ResourceUtilizationGantt","AdfDhtmlResourceUtilizationGanttPeer");AdfDhtmlResourceUtilizationGanttPeer.InitSubclass=function(){AdfObject.ensureClassInitialization(AdfDhtmlResourceUtilizationGanttPeer)};
AdfDhtmlResourceUtilizationGanttPeer.prototype.HandleComponentMouseOver=function(a){var b=a.getNativeEventTarget();b!=A_&&("DIV"==b.nodeName&&b.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Ti)&&(b.style.cursor="default");var c=A_sd(this,a);c!=A_?this.qh||(a=a.getNativeEvent(),this.getTooltip()!=A_&&(this.dragger=c,this.showTooltip(a))):!this.qh&&(b!=A_&&"DIV"==b.nodeName&&b.getAttribute(AdfDhtmlBaseGanttPeer.j)==A_T.Ep)&&(b.style.cursor="n-resize",this.Hd=b)};
A_h("AdfDhtmlResourceUtilizationGanttPeer.prototype.HandleComponentMouseOver",AdfDhtmlResourceUtilizationGanttPeer.prototype.HandleComponentMouseOver);AdfDhtmlResourceUtilizationGanttPeer.prototype.Ab=function(a){A_sd(this,a)!=A_?(a=this.getTooltip(),a!=A_&&(a.style.display="none"),this.dragger=A_):this.qh||(a=a.getNativeEventTarget(),a!=A_&&("DIV"==a.nodeName&&a.getAttribute(AdfDhtmlBaseGanttPeer.j)==A_T.Ep)&&(a.style.cursor="default",this.Hd=A_))};
A_h("AdfDhtmlResourceUtilizationGanttPeer.prototype.HandleComponentMouseOut",AdfDhtmlResourceUtilizationGanttPeer.prototype.Ab);
AdfDhtmlResourceUtilizationGanttPeer.prototype.bb=function(a){AdfDhtmlResourceUtilizationGanttPeer.superclass.bb.call(this,a);var b=a.getNativeEventTarget();if(b!=A_&&"DIV"==b.nodeName&&b.getAttribute(AdfDhtmlBaseGanttPeer.j)==A_T.Ep){this.Hd=b;this.qh=A_b;b=A_ud(this);b.style.cursor="n-resize";var c=A_L(this),d=document.getElementById(c),c=A_M(this,d),d=AdfAgent.AGENT.getElementPageBounds(d);b.style.left=parseInt(d.left)-parseInt(AdfAgent.AGENT.getElementLeft(this.getDomElement()))+"px";b.style.top=
parseInt(AdfAgent.AGENT.getElementTop(this.Hd.parentNode))-parseInt(AdfAgent.AGENT.getElementTop(this.getDomElement()))+"px";b.style.width=c.clientWidth-3+"px";b.style.height=parseInt(this.Hd.parentNode.style.height)-3+"px";b.style.display="block";this.yM=b.style.height;AdfAgent.AGENT.disableUserSelect(this.getDomElement());AdfPage.PAGE.startDrag(a.getNativeEvent(),this.createCallback(this.Fy),this.createCallback(this.iy))}};
A_h("AdfDhtmlResourceUtilizationGanttPeer.prototype.HandleComponentMouseDown",AdfDhtmlResourceUtilizationGanttPeer.prototype.bb);A_T.prototype.Fy=function(a,b,c){this.Hd!=A_&&this.qh&&(a=A_ud(this),c=parseInt(a.style.height)+c,A_T.UD>c||(a.style.height=c+"px"))};A_h("AdfDhtmlBaseResourceUtilizationGanttPeer.prototype.handleRowHandleDrag",A_T.prototype.Fy);
A_T.prototype.iy=function(){if(this.Hd!=A_){var a=A_ud(this);if(a.style.height!=this.yM){var b={};b.resId=this.Hd.parentNode.getAttribute(A_T.Sb);b.height=a.style.height;b.rowKey=A_N(this,this.Hd.parentNode);var c=this.getComponent(),d=AdfPage.PAGE,b=new A_O(c,"rowResize",b);b.setPartial(A_b);d.queueEventToServer(b)}this.Hd.parentNode.style.borderStyle="none";this.Hd=A_;this.qh=A_c;a.style.display="none"}};A_h("AdfDhtmlBaseResourceUtilizationGanttPeer.prototype.finishRowHandleDrag",A_T.prototype.iy);
A_T.prototype.De=function(a,b){var c=A_c;switch(b.keyCode){case AdfKeyStroke.ARROWUP_KEY:if(!b.ctrlKey&&!b.altKey&&!b.shiftKey){var d=a.getPeer().getDomElement(),e=d.getAttribute("_leafcolclientids"),f=AdfDhtmlBaseGanttPeer.createSubId(this.getComponent().getClientId(),A_,"dummy");try{d.setAttribute("_leafcolclientids","['"+f+"']"),this.Kd(a,b),A_Ld(this),c=A_b}finally{d.setAttribute("_leafcolclientids",e)}}break;case AdfKeyStroke.ARROWDOWN_KEY:if(!b.ctrlKey&&!b.altKey&&!b.shiftKey){d=a.getPeer().getDomElement();
e=d.getAttribute("_leafcolclientids");f=AdfDhtmlBaseGanttPeer.createSubId(this.getComponent().getClientId(),A_,"dummy");try{d.setAttribute("_leafcolclientids","['"+f+"']"),this.Kd(a,b),A_Md(this),c=A_b}finally{d.setAttribute("_leafcolclientids",e)}}break;case AdfKeyStroke.ARROWLEFT_KEY:c=A_b;this.Va!=A_&&this.Va.parentNode.firstChild==this.Va&&this.Kd(a,b);A_Nd(this);break;case AdfKeyStroke.ARROWRIGHT_KEY:A_Od(this),c=A_b}c?AdfAgent.AGENT.eatEvent(b):A_T.superclass.De.call(this,a,b)};