var A_Fd=AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlGanttPagingControlPeer",A_b);A_h("AdfDhtmlGanttPagingControlPeer",A_Fd);AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.gantt.GanttPagingControl","AdfDhtmlGanttPagingControlPeer");
A_Fd.InitSubclass=function(){AdfObject.ensureClassInitialization(A_Fd);this.Cf="nb_fr";this.YD="nb_pv";this.Ef="nb_nx";this.Df="nb_ls";this.XD="nb_pg";this.vp="_afrFstVbl";this.KE="_afrVblRws";AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.CLICK_EVENT_TYPE)};A_h("AdfDhtmlGanttPagingControlPeer.InitSubclass",A_Fd.InitSubclass);
A_Fd.prototype.ia=function(a){a=a.getNativeEvent();var b=AdfAgent.AGENT.getEventTarget(a),c=A_c;if(this.Re(b,A_Fd.YD)){var c=parseInt(this.getFirst()),d=parseInt(this.getRows()),c=Math.max(c-d,0);this.setFirst(c);AdfAgent.AGENT.eatEvent(a);c=A_b}else this.Re(b,A_Fd.Ef)?(c=parseInt(this.getFirst()),d=parseInt(this.getRows()),this.setFirst(c+d),AdfAgent.AGENT.eatEvent(a),c=A_b):this.Re(b,A_Fd.Cf)?(this.setFirst(0),AdfAgent.AGENT.eatEvent(a),c=A_b):(d=A_Gd(this,b,A_Fd.Df),d!=A_?(this.setFirst(d),AdfAgent.AGENT.eatEvent(a),
c=A_b):(d=A_Gd(this,b,A_Fd.XD),d!=A_&&(this.setFirst(d),AdfAgent.AGENT.eatEvent(a),c=A_b)));c&&A_k.sa(b,"p_AFActivated")};A_h("AdfDhtmlGanttPagingControlPeer.prototype.HandleComponentClick",A_Fd.prototype.ia);A_g=A_Fd.prototype;A_g.vm=function(a,b){for(var c=a,d=A_,e=this.getDomElement();!d&&c&&c!=e.parent&&1==c.nodeType;)if(c.id&&0<=c.id.indexOf(b)){d=c;break}else c=c.parentNode;return d};
A_g.getFirst=function(){var a=this.getComponent().getParent().getParent().getParent().getClientId().concat(AdfDhtmlBaseGanttPeer.u).concat(AdfDhtmlBaseGanttPeer.la);return AdfPage.PAGE.findComponent(a).getProperty(A_Fd.vp)};A_g.getRows=function(){var a=this.getComponent().getParent().getParent().getParent().getClientId().concat(AdfDhtmlBaseGanttPeer.u).concat(AdfDhtmlBaseGanttPeer.la);return AdfPage.PAGE.findComponent(a).getProperty(A_Fd.KE)};
A_g.Re=function(a,b){var c=AdfRichUIPeer.CreateSubId(this.getComponent().getClientId(),b);return this.vm(a,c)!=A_?!A_k.ja(a,"p_AFDisabled"):A_c};function A_Gd(a,b,c){c=AdfRichUIPeer.CreateSubId(a.getComponent().getClientId(),c);a=a.vm(b,c);if(a!=A_)return a.id.substring(c.length)}
A_g.setFirst=function(a){var b=this.getComponent().getParent().getParent().getParent(),c=b.getClientId().concat(AdfDhtmlBaseGanttPeer.u).concat(AdfDhtmlBaseGanttPeer.la);AdfPage.PAGE.findComponent(c).setProperty(A_Fd.vp,a,A_c,A_b);b=b.getClientId().concat(AdfDhtmlBaseGanttPeer.u).concat(AdfDhtmlBaseGanttPeer.Zb);AdfPage.PAGE.findComponent(b).setProperty(A_Fd.vp,a,A_c,A_b)};
A_Fd.HM=function(a){var b=AdfAgent.AGENT.getElementById(a);a=AdfPage.PAGE.findComponent(a).getParent();b!=A_&&a!=A_&&("hidden"!=b.style.visibility&&"auto"!=a.getBottomHeight()?a.setBottomHeight("auto"):"hidden"==b.style.visibility&&"auto"==a.getBottomHeight()&&a.setBottomHeight("0px"))};A_h("AdfDhtmlGanttPagingControlPeer.updateHeight",A_Fd.HM);