var AdfDhtmlProjectGanttPeer=AdfRichUIPeer.createPeerClass(AdfDhtmlBaseProjectGanttPeer,"AdfDhtmlProjectGanttPeer",!1);A_a("AdfDhtmlProjectGanttPeer",AdfDhtmlProjectGanttPeer);AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.gantt.ProjectGantt","AdfDhtmlProjectGanttPeer");AdfDhtmlProjectGanttPeer.InitSubclass=function(){AdfObject.ensureClassInitialization(AdfDhtmlProjectGanttPeer)};
AdfDhtmlProjectGanttPeer.prototype.HandleComponentMouseOver=function(a){var b=a.getNativeEventTarget();if(b.getAttribute(AdfDhtmlBaseGanttPeer.l)==AdfDhtmlBaseGanttPeer.$b&&null!=b.firstChild&&(3==b.firstChild.nodeType||"IMG"==b.firstChild.nodeName)&&null!=b.parentNode.getAttribute("ctt"))for(var c=0;c<b.parentNode.childNodes.length;c++)if(null!=b.parentNode.childNodes[c].getAttribute("pc")){b.style.display="none";break}b.getAttribute(AdfDhtmlBaseGanttPeer.l)!=AdfDhtmlBaseGanttPeer.$b||null==b.firstChild||
3!=b.firstChild.nodeType&&"IMG"!=b.nodeName||"TABLE"!=b.parentNode.parentNode.parentNode.parentNode.nodeName||null==b.parentNode.parentNode.parentNode.parentNode.parentNode.getAttribute("ctt")||(b.parentNode.parentNode.parentNode.parentNode.style.display="none");"IMG"==b.nodeName&&b.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.l)==AdfDhtmlBaseGanttPeer.$b&&("TABLE"==b.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName&&null!=b.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.getAttribute("ctt")?
b.parentNode.parentNode.parentNode.parentNode.parentNode.style.display="none":null!=b.parentNode.parentNode.getAttribute("ctt")&&(b.parentNode.style.display="none"));AdfDhtmlProjectGanttPeer.superclass.HandleComponentMouseOver.call(this,a)};A_a("AdfDhtmlProjectGanttPeer.prototype.HandleComponentMouseOver",AdfDhtmlProjectGanttPeer.prototype.HandleComponentMouseOver);
AdfDhtmlProjectGanttPeer.prototype.Ib=function(a){var b=a.getNativeEventTarget();if(null!=b.getAttribute("ctt")||null!=b.parentNode.getAttribute("ctt"))if("bar"==b.getAttribute("part")||null!=b.getAttribute("pc")||b.getAttribute(AdfDhtmlBaseGanttPeer.l)==AdfDhtmlBaseGanttPeer.$b&&null==b.firstChild)for(var c=null,c=null!=b.getAttribute("ctt")?b.childNodes:b.parentNode.childNodes,b=0;b<c.length;b++){var d=c[b];d.getAttribute(AdfDhtmlBaseGanttPeer.l)!=AdfDhtmlBaseGanttPeer.$b||null==d.firstChild||3!=
d.firstChild.nodeType&&"IMG"!=d.firstChild.nodeName||"none"!=d.style.display||(d.style.display="block");if(("TABLE"==d.nodeName||d.getAttribute(AdfDhtmlBaseGanttPeer.l)==AdfDhtmlBaseGanttPeer.$b)&&"none"==d.style.display){d.style.display="table";break}}AdfDhtmlProjectGanttPeer.superclass.Ib.call(this,a)};A_a("AdfDhtmlProjectGanttPeer.prototype.HandleComponentMouseOut",AdfDhtmlProjectGanttPeer.prototype.Ib);
AdfDhtmlProjectGanttPeer.prototype.yt=function(a){a=AdfAgent.AGENT.getMousePosition(a).y;return null!=this.Al&&(a>this.Al.y+10||a<this.Al.y-10)?!0:!1};
AdfDhtmlProjectGanttPeer.prototype.Qe=function(a,b){var c=!1,d=b.keyCode;switch(d){case AdfKeyStroke.ARROWLEFT_KEY:case AdfKeyStroke.ARROWRIGHT_KEY:if(b.ctrlKey){A_Nd(this,b,d);break}case AdfKeyStroke.ARROWUP_KEY:case AdfKeyStroke.ARROWDOWN_KEY:d!=AdfKeyStroke.ARROWUP_KEY&&d!=AdfKeyStroke.ARROWDOWN_KEY||A_Ed(this);if(!b.ctrlKey&&!b.altKey&&!b.shiftKey){if(d==AdfKeyStroke.ARROWUP_KEY||d==AdfKeyStroke.ARROWDOWN_KEY)this.no=!0;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),c=!0}finally{d.setAttribute("_leafcolclientids",e)}}break;case AdfKeyStroke.ENTER_KEY:A_Nd(this,b,d),c=!0}c?AdfAgent.AGENT.eatEvent(b):AdfDhtmlProjectGanttPeer.superclass.Qe.call(this,a,b)};
function A_Nd(a,b,c){var d=a.getComponent().getClientId(),d=AdfPage.PAGE.findComponent(d+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.sa).getSelectedRowKeys(),e=null,f;for(f in d){e=f;break}if(e&&(f=A_Nc(a,e),f.Ra))for(f=A_Mc(a,f.Ra).parentNode,d=0;d<f.childNodes.length;d++)if(e=f.childNodes[d],e.getAttribute("dpType"))if(e.getAttribute("dpType")==A_N.rE&&c==AdfKeyStroke.ARROWLEFT_KEY||e.getAttribute("dpType")==A_N.sE&&c==AdfKeyStroke.ARROWRIGHT_KEY){A_Ed(a);e.firstChild.src=e.firstChild.getAttribute("src_ovr");
e.setAttribute("dep_selected","true");a.Dh=e;break}else if(c==AdfKeyStroke.ENTER_KEY&&"true"==e.getAttribute("dep_selected")){e.setAttribute("dep_selected",!1);A_Kc(a,b,e);A_Ed(a);break}};