var AdfDhtmlProjectGanttPeer=AdfRichUIPeer.createPeerClass(AdfDhtmlBaseProjectGanttPeer,"AdfDhtmlProjectGanttPeer",A_c);A_h("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.j)==AdfDhtmlBaseGanttPeer.Rb&&b.firstChild!=A_&&(3==b.firstChild.nodeType||"IMG"==b.firstChild.nodeName)&&b.parentNode.getAttribute("ctt")!=A_)for(var c=0;c<b.parentNode.childNodes.length;c++)if(b.parentNode.childNodes[c].getAttribute("pc")!=A_){b.style.display="none";break}if(b.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Rb&&b.firstChild!=
A_&&(3==b.firstChild.nodeType||"IMG"==b.nodeName)&&"TABLE"==b.parentNode.parentNode.parentNode.parentNode.nodeName&&b.parentNode.parentNode.parentNode.parentNode.parentNode.getAttribute("ctt")!=A_)b.parentNode.parentNode.parentNode.parentNode.style.display="none";"IMG"==b.nodeName&&b.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Rb&&("TABLE"==b.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName&&b.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.getAttribute("ctt")!=
A_?b.parentNode.parentNode.parentNode.parentNode.parentNode.style.display="none":b.parentNode.parentNode.getAttribute("ctt")!=A_&&(b.parentNode.style.display="none"));AdfDhtmlProjectGanttPeer.superclass.HandleComponentMouseOver.call(this,a)};A_h("AdfDhtmlProjectGanttPeer.prototype.HandleComponentMouseOver",AdfDhtmlProjectGanttPeer.prototype.HandleComponentMouseOver);
AdfDhtmlProjectGanttPeer.prototype.Ab=function(a){var b=a.getNativeEventTarget();if(b.getAttribute("ctt")!=A_||b.parentNode.getAttribute("ctt")!=A_)if("bar"==b.getAttribute("part")||b.getAttribute("pc")!=A_||b.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Rb&&b.firstChild==A_)for(var c=A_,c=b.getAttribute("ctt")!=A_?b.childNodes:b.parentNode.childNodes,b=0;b<c.length;b++){var d=c[b];if(d.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Rb&&d.firstChild!=A_&&(3==d.firstChild.nodeType||
"IMG"==d.firstChild.nodeName)&&"none"==d.style.display)d.style.display="block";if(("TABLE"==d.nodeName||d.getAttribute(AdfDhtmlBaseGanttPeer.j)==AdfDhtmlBaseGanttPeer.Rb)&&"none"==d.style.display){d.style.display="table";break}}AdfDhtmlProjectGanttPeer.superclass.Ab.call(this,a)};A_h("AdfDhtmlProjectGanttPeer.prototype.HandleComponentMouseOut",AdfDhtmlProjectGanttPeer.prototype.Ab);
AdfDhtmlProjectGanttPeer.prototype.Ms=function(a){a=AdfAgent.AGENT.getMousePosition(a).y;return this.Zk!=A_&&(a>this.Zk.y+10||a<this.Zk.y-10)?A_b:A_c};
AdfDhtmlProjectGanttPeer.prototype.De=function(a,b){var c=A_c,d=b.keyCode;switch(d){case AdfKeyStroke.ARROWLEFT_KEY:case AdfKeyStroke.ARROWRIGHT_KEY:if(b.ctrlKey){A_Sd(this,b,d);break}case AdfKeyStroke.ARROWUP_KEY:case AdfKeyStroke.ARROWDOWN_KEY:(d==AdfKeyStroke.ARROWUP_KEY||d==AdfKeyStroke.ARROWDOWN_KEY)&&A_Jd(this);if(!b.ctrlKey&&!b.altKey&&!b.shiftKey){if(d==AdfKeyStroke.ARROWUP_KEY||d==AdfKeyStroke.ARROWDOWN_KEY)this.Fn=A_b;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),c=A_b}finally{d.setAttribute("_leafcolclientids",e)}}break;case AdfKeyStroke.ENTER_KEY:A_Sd(this,b,d),c=A_b}c?AdfAgent.AGENT.eatEvent(b):AdfDhtmlProjectGanttPeer.superclass.De.call(this,a,b)};
function A_Sd(a,b,c){var d=a.getComponent().getClientId(),d=AdfPage.PAGE.findComponent(d+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseGanttPeer.la).getSelectedRowKeys(),e=A_,f;for(f in d){e=f;break}if(e&&(f=A_Qc(a,e),f.Ia)){f=A_Pc(a,f.Ia).parentNode;for(d=0;d<f.childNodes.length;d++)if(e=f.childNodes[d],e.getAttribute("dpType"))if(e.getAttribute("dpType")==A_S.xD&&c==AdfKeyStroke.ARROWLEFT_KEY||e.getAttribute("dpType")==A_S.yD&&c==AdfKeyStroke.ARROWRIGHT_KEY){A_Jd(a);e.firstChild.src=e.firstChild.getAttribute("src_ovr");
e.setAttribute("dep_selected","true");a.nh=e;break}else if(c==AdfKeyStroke.ENTER_KEY&&"true"==e.getAttribute("dep_selected")){e.setAttribute("dep_selected",A_c);A_Nc(a,b,e);A_Jd(a);break}}};