var AdfDhtmlResourceUtilizationGanttPeer=AdfRichUIPeer.createPeerClass(A_O,"AdfDhtmlResourceUtilizationGanttPeer",!1);A_a("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();null!=b&&"DIV"==b.nodeName&&b.getAttribute(AdfDhtmlBaseGanttPeer.l)==AdfDhtmlBaseGanttPeer.nj&&(b.style.cursor="default");var c=A_od(this,a);null!=c?this.Hh||(a=a.getNativeEvent(),null!=this.getTooltip()&&(this.dragger=c,this.showTooltip(a))):this.Hh||null==b||"DIV"!=b.nodeName||b.getAttribute(AdfDhtmlBaseGanttPeer.l)!=A_O.kq||(b.style.cursor="n-resize",this.Pd=b)};
A_a("AdfDhtmlResourceUtilizationGanttPeer.prototype.HandleComponentMouseOver",AdfDhtmlResourceUtilizationGanttPeer.prototype.HandleComponentMouseOver);AdfDhtmlResourceUtilizationGanttPeer.prototype.Ib=function(a){null!=A_od(this,a)?(a=this.getTooltip(),null!=a&&(a.style.display="none"),this.dragger=null):this.Hh||(a=a.getNativeEventTarget(),null!=a&&"DIV"==a.nodeName&&a.getAttribute(AdfDhtmlBaseGanttPeer.l)==A_O.kq&&(a.style.cursor="default",this.Pd=null))};
A_a("AdfDhtmlResourceUtilizationGanttPeer.prototype.HandleComponentMouseOut",AdfDhtmlResourceUtilizationGanttPeer.prototype.Ib);
AdfDhtmlResourceUtilizationGanttPeer.prototype.kb=function(a){AdfDhtmlResourceUtilizationGanttPeer.superclass.kb.call(this,a);var b=a.getNativeEventTarget();if(null!=b&&"DIV"==b.nodeName&&b.getAttribute(AdfDhtmlBaseGanttPeer.l)==A_O.kq){this.Pd=b;this.Hh=!0;b=A_qd(this);b.style.cursor="n-resize";var c=A_E(this),d=document.getElementById(c),c=A_G(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.Pd.parentNode))-parseInt(AdfAgent.AGENT.getElementTop(this.getDomElement()))+"px";b.style.width=c.clientWidth-3+"px";b.style.height=parseInt(this.Pd.parentNode.style.height)-3+"px";b.style.display="block";this.qN=b.style.height;AdfAgent.AGENT.disableUserSelect(this.getDomElement());AdfPage.PAGE.startDrag(a.getNativeEvent(),this.createCallback(this.sz),this.createCallback(this.Xy))}};
A_a("AdfDhtmlResourceUtilizationGanttPeer.prototype.HandleComponentMouseDown",AdfDhtmlResourceUtilizationGanttPeer.prototype.kb);A_O.prototype.sz=function(a,b,c){null!=this.Pd&&this.Hh&&(a=A_qd(this),c=parseInt(a.style.height)+c,A_O.OE>c||(a.style.height=c+"px"))};A_O.prototype.handleRowHandleDrag=A_O.prototype.sz;
A_O.prototype.Xy=function(){if(null!=this.Pd){var a=A_qd(this);if(a.style.height!=this.qN){var b={};b.resId=this.Pd.parentNode.getAttribute(A_O.ac);b.height=a.style.height;b.rowKey=A_H(this,this.Pd.parentNode);var c=this.getComponent(),d=AdfPage.PAGE,b=new A_I(c,"rowResize",b);b.setPartial(!0);d.queueEventToServer(b)}this.Pd.parentNode.style.borderStyle="none";this.Pd=null;this.Hh=!1;a.style.display="none"}};A_O.prototype.finishRowHandleDrag=A_O.prototype.Xy;
A_O.prototype.Qe=function(a,b){var c=!1;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(),null,"dummy");try{d.setAttribute("_leafcolclientids","['"+f+"']"),this.Td(a,b),A_Gd(this),c=!0}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(),null,"dummy");try{d.setAttribute("_leafcolclientids","['"+f+"']"),this.Td(a,b),A_Hd(this),c=!0}finally{d.setAttribute("_leafcolclientids",e)}}break;case AdfKeyStroke.ARROWLEFT_KEY:c=!0;null!=this.cb&&this.cb.parentNode.firstChild==this.cb&&this.Td(a,b);A_Id(this);break;case AdfKeyStroke.ARROWRIGHT_KEY:A_Jd(this),c=!0}c?AdfAgent.AGENT.eatEvent(b):A_O.superclass.Qe.call(this,a,b)};