function AdfOverflowSupport(a,b,d,e,f,g){this.Init(a,b,d,e,f,g)}AdfObject.createSubclass(AdfOverflowSupport);AdfOverflowSupport.InitClass=function(){this._POPUP_ID_START="_afrOfwSrt";this._POPUP_ID_END="_afrOfwEnd";this._DEPRESSED_STYLE_CLASS="p_AFDepressed"};
AdfOverflowSupport.prototype.Init=function(a,b,d,e,f,g){AdfOverflowSupport.superclass.Init.call(this);this._peer=b;this._type=d||"end";this._position=e||"after";this._orientation=f||"horizontal";this._useRovingTabIndex=g;this._element=AdfAgent.AGENT.getElementById(a);this._supportsStartOverflow()&&(this._startContainer=this._getElement(a,"soc"),(this._startIndicator=this._getElement(a,"soi"))&&this._initStartButtonEventHandling());this._supportsEndOverflow()&&(this._endContainer=this._getElement(a,
"eoc"),this._endIndicator=this._getElement(a,"eoi"),null!=this._endIndicator&&this._initEndButtonEventHandling());this._supportsDroplist()&&(a=AdfRichUIPeer.CreateSubId(a,"dlc"),this._droplistContainer=AdfAgent.AGENT.getElementById(a));this._steps=[];this._firstVisibleStep=0;this._lastVisibleStep=-1;this._handlingResize=!1};
AdfOverflowSupport.needsOverflow=function(a){a=AdfAgent.AGENT.getElementById(a);return Math.max(a.firstChild.offsetWidth,a.scrollWidth)>a.offsetWidth||Math.max(a.firstChild.offsetHeight,a.scrollHeight)>a.offsetHeight?!0:!1};
AdfOverflowSupport.getOverflowChildComponents=function(a,b){b||(b=[]);var d=AdfAgent.AGENT,e=a.getClientId(),f=AdfRichUIPeer.createSubId(e,"eoc"),e=AdfRichUIPeer.createSubId(e,"soc");(f=d.getElementById(f))&&d.getDescendantComponentsForNode(f,b);(f=d.getElementById(e))&&d.getDescendantComponentsForNode(f,b);return b};
AdfOverflowSupport.prototype.removeOverflowSupport=function(a){a||(this._startContainer&&AdfPage.PAGE.removeComponentsInSubtree(this._startContainer),this._endContainer&&AdfPage.PAGE.removeComponentsInSubtree(this._endContainer));delete this._peer;delete this._element;this._supportsStartOverflow()&&(delete this._startContainer,this._startIndicator&&(this._removeStartButtonCallbacks(),delete this._startIndicator,delete this._startHints),this._startContainerParent&&delete this._startContainerParent);
this._supportsEndOverflow()&&(this._removeEndButtonCallbacks(),delete this._endIndicator,delete this._endContainer,delete this._endHints,this._endContainerParent&&delete this._endContainerParent);this._supportsDroplist()&&delete this._droplistContainer;this._removeSteps()};AdfOverflowSupport.prototype.createStep=function(){this._steps.push({elements:[],overflowElements:[],swapElements:[]});this._lastVisibleStep++};
AdfOverflowSupport.prototype.addElement=function(a){this._steps[this._steps.length-1].elements.push(a)};AdfOverflowSupport.prototype.addOverflowElement=function(a){this._steps[this._steps.length-1].overflowElements.push(a)};AdfOverflowSupport.prototype.createSwapPosition=function(a){var b=this._steps.length-1,d=a.ownerDocument,e=d.createElement("a");e.style.display="none";d=d.createElement("a");d.style.display="none";a.parentNode.insertBefore(d,a);this._steps[b].swapElements.push([a,d,e]);return e};
AdfOverflowSupport.prototype.addDropListElements=function(a){for(var b=this._droplistContainer,d=0;d<a.length;d++)b.appendChild(a[d])};AdfOverflowSupport.prototype.handleResize=function(){this._handlingResize||(this._handlingResize=!0,this._handleResize(),this._handlingResize=!1)};
AdfOverflowSupport.prototype._handleResize=function(){var a=this._getAvailableWidth(),b=this._getAvailableHeight();if(this._supportsBothOverflow())this._handleResizeTypeBoth(a,b);else{var d,e=this._steps.length,f=this._numberOfVisibleSteps();if(f==e&&(this._hideOverflowButtons(),d=this._hasAvailableSpace(a,b)))return;this._showOverflowButtons(!0);a=this._getAvailableWidth();b=this._getAvailableHeight();"horizontal"==this._orientation&&50>=a||"vertical"==this._orientation&&50>=b?(this._hideAllSteps(),
d=this._hasAvailableSpace(a,b)):(null==d&&(d=this._hasAvailableSpace(a,b)),d=this._binarySearchAdjustSteps(d,a,b,d?f:0,d?e:f),a=this._getAvailableWidth(),b=this._getAvailableHeight());d=this._showSteps(a,b,d);a=this._getAvailableWidth();b=this._getAvailableHeight();if(this._numberOfVisibleSteps()==e){if(d){this._hideOverflowButtons();this._closeOverflowPopups();return}this._hideOverflowButtons();if(d=this._hasAvailableSpace(a,b)){this._closeOverflowPopups();return}this._showOverflowButtons(!0)}this._hideSteps(a,
b,d);this._useRovingTabIndex&&this._resetActiveDescendant()}};AdfOverflowSupport.prototype.removeAllItemsFromOverflow=function(){this._hideOverflowButtons();this._showAllSteps();this._closeOverflowPopups()};AdfOverflowSupport.prototype.focusNextChild=function(a){this._canMoveFocus(a)&&(a=AdfFocusUtils.focusNextActiveDescendant(a,this._activeDescendant,!0),AdfAssert.assertDomElement(a),this._activeDescendant=a)};
AdfOverflowSupport.prototype.focusPreviousChild=function(a){this._canMoveFocus(a)&&(a=AdfFocusUtils.focusPreviousActiveDescendant(a,this._activeDescendant,!0),AdfAssert.assertDomElement(a),this._activeDescendant=a)};
AdfOverflowSupport.prototype._canMoveFocus=function(a){AdfAssert.assert(this._useRovingTabIndex);AdfAssert.assertDomElement(a);AdfAssert.assertDomElement(this._activeDescendant);AdfAssert.assert("0"==this._activeDescendant.getAttribute("tabindex"),"The overflow popup's active descendant should have tabindex 0");this._activeDescendant||(AdfLogger.LOGGER.warning("Overflow has lost its assigned activeDescendant!"),this.resetActiveDescendant());return null!=this._activeDescendant};
AdfOverflowSupport.prototype.updateActiveDescendant=function(a){AdfAssert.assertDomElement(a);this._activeDescendant!=a&&(this._activeDescendant&&this._activeDescendant.setAttribute("tabIndex","-1"),a.setAttribute("tabIndex","0"),this._activeDescendant=a)};AdfOverflowSupport.prototype.isInOverflow=function(a){if(this._supportsEndOverflow()&&AdfDomUtils.isAncestor(this._endContainer,a))return"end";if(this._supportsStartOverflow()&&AdfDomUtils.isAncestor(this._startContainer,a))return"start"};
AdfOverflowSupport.prototype.showOverflowPopup=function(a){var b=this._peer,d=this._peer.getComponent();b.isPopupVisible(d,"start"==a?AdfOverflowSupport._POPUP_ID_START:AdfOverflowSupport._POPUP_ID_END)||("start"==a?(this._initializeStartContainerCallback(),this._overflowButtonPressed(AdfOverflowSupport._POPUP_ID_START,this._startContainer,this._startHints)):(this._initializeEndContainerCallback(),this._supportsDroplist()?this._overflowButtonPressed(AdfOverflowSupport._POPUP_ID_END,this._droplistContainer,
this._endHints):this._overflowButtonPressed(AdfOverflowSupport._POPUP_ID_END,this._endContainer,this._endHints)))};AdfOverflowSupport.prototype._closeOverflowPopups=function(){var a=this._peer,b=a.getComponent();a.isPopupVisible(b,AdfOverflowSupport._POPUP_ID_START)&&a.hidePopup(b,AdfOverflowSupport._POPUP_ID_START);a.isPopupVisible(b,AdfOverflowSupport._POPUP_ID_END)&&a.hidePopup(b,AdfOverflowSupport._POPUP_ID_END)};
AdfOverflowSupport.prototype._supportsStartOverflow=function(){return"start"==this._type||"both"==this._type||"droplist"==this._type};AdfOverflowSupport.prototype._supportsEndOverflow=function(){return"end"==this._type||"both"==this._type||"droplist"==this._type};AdfOverflowSupport.prototype._supportsBothOverflow=function(){return"both"==this._type||"droplist"==this._type};AdfOverflowSupport.prototype._supportsDroplist=function(){return"droplist"==this._type};
AdfOverflowSupport.prototype._getElement=function(a,b){var d=AdfRichUIPeer.CreateSubId(a,b);return AdfAgent.AGENT.getElementById(d)};
AdfOverflowSupport.prototype._initStartButtonEventHandling=function(){var a=AdfAgent.AGENT,b=this._startIndicator,d=this._createOverflowPopupHints();d[AdfDhtmlPopupHints.ALIGN_ELEMENT]=b;d[AdfRichPopup.HINT_ALIGN]="before"==this._position?AdfRichPopup.ALIGN_BEFORE_START:AdfRichPopup.ALIGN_AFTER_START;this._startHints=d;d=this._startShowCall=this.createCallback(this._startOverflowButtonPressed);a.addBubbleEventListener(b,"mousedown",d);a.addBubbleEventListener(b,"keydown",d);this._startButtonMouseUpCall=
this.createCallback(this._startOverflowButtonMouseUp);a.addBubbleEventListener(b,"mouseup",this._startButtonMouseUpCall);this._startButtonMouseOutCall=this.createCallback(this._startOverflowButtonMouseOut);a.addBubbleEventListener(b,"mouseout",this._startButtonMouseOutCall)};
AdfOverflowSupport.prototype._initEndButtonEventHandling=function(){var a=AdfAgent.AGENT,b=this._endIndicator,d=this._createOverflowPopupHints();d[AdfDhtmlPopupHints.ALIGN_ELEMENT]=this._endIndicator;d[AdfRichPopup.HINT_ALIGN]="before"==this._position?AdfRichPopup.ALIGN_BEFORE_END:AdfRichPopup.ALIGN_AFTER_END;this._endHints=d;d=this._endShowCall=this.createCallback(this._endOverflowButtonPressed);a.addBubbleEventListener(b,"mousedown",d);a.addBubbleEventListener(b,"keydown",d);this._endButtonMouseUpCall=
this.createCallback(this._endOverflowButtonMouseUp);a.addBubbleEventListener(b,"mouseup",this._endButtonMouseUpCall);this._endButtonMouseOutCall=this.createCallback(this._endOverflowButtonMouseOut);a.addBubbleEventListener(b,"mouseout",this._endButtonMouseOutCall)};
AdfOverflowSupport.prototype._createOverflowPopupHints=function(){var a={};a[AdfDhtmlPopupHints.AUTODISMISS]=AdfDhtmlPopupHints.AUTODISMISS_ALWAYS;a[AdfDhtmlPopupHints.FOCUS]=!0;a[AdfDhtmlPopupHints.TYPE]=AdfDhtmlPopupHints.TYPE_MENU;a[AdfDhtmlPopupHints.CLOSE_ON_ESCAPE]=!0;return a};
AdfOverflowSupport.prototype._startOverflowButtonPressed=function(a){var b=AdfAgent.AGENT,d=a.type,e=a.keyCode;if("keydown"!=d||e==AdfKeyStroke.ENTER_KEY||e==AdfKeyStroke.ARROWDOWN_KEY||e==AdfKeyStroke.SPACE_KEY)"mousedown"==d&&a.button&&a.button!=AdfUIInputEvent.LEFT_BUTTON_FLAG||(this._initializeStartContainerCallback(),this._overflowButtonPressed(AdfOverflowSupport._POPUP_ID_START,this._startContainer,this._startHints),"mousedown"==d&&(d=b.getEventTarget(a),this._setDepressedStyle(d,!0))),b.eatEvent(a)};
AdfOverflowSupport.prototype._initializeStartContainerCallback=function(){null==this._hideStartContainerCallback&&(this._hideStartContainerCallback=this.createCallback(this._hideStartContainer),AdfObject.ensureClassInitialization(AdfDhtmlPopupWindow),this._startHints[AdfDhtmlPopupHints.CLOSE_HANDLER]=this._hideStartContainerCallback,this._startContainerParent=this._startContainer.parentNode)};
AdfOverflowSupport.prototype._startOverflowButtonMouseUp=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1)};AdfOverflowSupport.prototype._startOverflowButtonMouseOut=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1)};
AdfOverflowSupport.prototype._endOverflowButtonPressed=function(a){var b=AdfAgent.AGENT,d=a.type,e=a.keyCode;if("keydown"!=d||e==AdfKeyStroke.ENTER_KEY||e==AdfKeyStroke.ARROWDOWN_KEY||e==AdfKeyStroke.SPACE_KEY)"mousedown"==d&&a.button&&a.button!=AdfUIInputEvent.LEFT_BUTTON_FLAG||(this._initializeEndContainerCallback(),this._supportsDroplist()?this._overflowButtonPressed(AdfOverflowSupport._POPUP_ID_END,this._droplistContainer,this._endHints):this._overflowButtonPressed(AdfOverflowSupport._POPUP_ID_END,
this._endContainer,this._endHints),"mousedown"==d&&(d=b.getEventTarget(a),this._setDepressedStyle(d,!0))),b.eatEvent(a)};AdfOverflowSupport.prototype._initializeEndContainerCallback=function(){null==this._hideEndContainerCallback&&(this._hideEndContainerCallback=this.createCallback(this._hideEndContainer),AdfObject.ensureClassInitialization(AdfDhtmlPopupWindow),this._endHints[AdfDhtmlPopupHints.CLOSE_HANDLER]=this._hideEndContainerCallback,this._endContainerParent=this._endContainer.parentNode)};
AdfOverflowSupport.prototype._endOverflowButtonMouseUp=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1)};AdfOverflowSupport.prototype._endOverflowButtonMouseOut=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1)};AdfOverflowSupport.prototype._setDepressedStyle=function(a,b){var d=AdfOverflowSupport._DEPRESSED_STYLE_CLASS;b?AdfDomUtils.addCSSClassName(a,d):AdfDomUtils.removeCSSClassName(a,d)};
AdfOverflowSupport.prototype._overflowButtonPressed=function(a,b,d){var e=this._peer,f=this._peer.getComponent();e.isPopupVisible(f,a)?this._peer.hidePopup(f,a):(this._useRovingTabIndex&&this._resetActiveDescendant(b),this._peer.showPopup(f,b,d,a))};AdfOverflowSupport.prototype._hideStartContainer=function(){this._startContainer&&this._startContainerParent.appendChild(this._startContainer)};
AdfOverflowSupport.prototype._hideEndContainer=function(){this._supportsDroplist()&&this._droplistContainer?this._droplistContainer.parentNode.appendChild(this._droplistContainer):this._endContainer&&this._endContainerParent.appendChild(this._endContainer)};
AdfOverflowSupport.prototype._handleResizeTypeBoth=function(a,b){this._hideOverflowButtons();this._setActiveStep();var d=this._hasAvailableSpace(a,b);this._showSteps(a,b,d);this._showOverflowButtons();a=this._getAvailableWidth();b=this._getAvailableHeight();for(d=this._hasAvailableSpace(a,b);this._hideSteps(a,b,d);)this._showOverflowButtons(),d=this._hasAvailableSpace(a,b);this._numberOfVisibleSteps()==this._steps.length&&this._closeOverflowPopups()};
AdfOverflowSupport.prototype._setActiveStep=function(){for(var a=this._steps,b=0;b<a.length;b++){for(var d=a[b],e=0;e<d.overflowElements.length;e++)if(AdfDomUtils.containsCSSClassName(d.overflowElements[e].firstChild,"p_AFSelected")){this._activeStep=b;return}for(e=0;e<d.elements.length;e++)if(AdfDomUtils.containsCSSClassName(d.elements[e],"p_AFSelected")){this._activeStep=b;return}}};
AdfOverflowSupport.prototype._binarySearchAdjustSteps=function(a,b,d,e,f){var g=f-e;if(2>=g)return a;for(var g=Math.ceil(g/2),h=0;h<g;h++)a?(this._showOneStep(),b=this._getAvailableWidth(),d=this._getAvailableHeight()):this._hideOneStep();(a=this._hasAvailableSpace(b,d))?e+=g:f-=g;return this._binarySearchAdjustSteps(a,b,d,e,f)};
AdfOverflowSupport.prototype._showSteps=function(a,b,d){for(;this._numberOfVisibleSteps()<this._steps.length&&(d||this._isActiveStepInOverflow());){switch(this._type){case "end":this._showEndStep();break;case "start":this._showStartStep();break;case "both":case "droplist":a=this._activeStep-this._firstVisibleStep,b=this._numberOfVisibleSteps()-a-1,d=this._steps.length-1,a<b&&0!=this._firstVisibleStep||this._lastVisibleStep==d?this._showStartStep():this._showEndStep()}a=this._getAvailableWidth();b=
this._getAvailableHeight();d=this._hasAvailableSpace(a,b)}return d};AdfOverflowSupport.prototype._showAllSteps=function(){for(;this._numberOfVisibleSteps()<this._steps.length;)switch(this._type){case "end":this._showEndStep();break;case "start":this._showStartStep();break;case "both":case "droplist":0!=this._firstVisibleStep?this._showStartStep():this._showEndStep()}};
AdfOverflowSupport.prototype._hideAllSteps=function(){for(;0<this._numberOfVisibleSteps();)switch(this._type){case "end":this._hideEndStep();break;case "start":case "both":case "droplist":this._hideStartStep()}};
AdfOverflowSupport.prototype._hideSteps=function(a,b,d){for(var e=!1;!d&&0<this._numberOfVisibleSteps();){switch(this._type){case "end":this._hideEndStep();break;case "start":this._hideStartStep();break;case "both":case "droplist":d=this._activeStep-this._firstVisibleStep,e=this._numberOfVisibleSteps()-d-1,d>=e||-1==this._firstVisibleStep?this._hideStartStep():this._hideEndStep()}e=!0;d=this._hasAvailableSpace(a,b)}return e};
AdfOverflowSupport.prototype._isActiveStepInOverflow=function(){return this._supportsBothOverflow()?this._activeStep<this._firstVisibleStep||this._activeStep>this._lastVisibleStep:!1};AdfOverflowSupport.prototype._getAvailableWidth=function(){return this._element.offsetWidth+3};AdfOverflowSupport.prototype._getAvailableHeight=function(){return this._element.offsetHeight+5};
AdfOverflowSupport.prototype._hasAvailableSpace=function(a,b){var d=Math.max(this._element.firstChild.offsetWidth,this._element.scrollWidth),e=AdfAgent.getAgent();AdfPage.PAGE.getLocaleContext().isRightToLeft()&&e.getPlatform()==AdfAgent.IE_PLATFORM&&8>e.getVersion()&&(d=this._element.scrollWidth);e=Math.max(this._element.firstChild.offsetHeight,this._element.scrollHeight);return d<=a&&e<=b};
AdfOverflowSupport.prototype._showOneStep=function(){"end"==this._type?this._showEndStep():"start"==this._type&&this._showStartStep()};AdfOverflowSupport.prototype._showStartStep=function(){this._showStep(this._steps[this._firstVisibleStep-1],!0);this._firstVisibleStep--};AdfOverflowSupport.prototype._showEndStep=function(){this._showStep(this._steps[this._lastVisibleStep+1]);this._lastVisibleStep++};
AdfOverflowSupport.prototype._hideOneStep=function(){"end"==this._type?this._hideEndStep():"start"==this._type&&this._hideStartStep()};AdfOverflowSupport.prototype._hideStartStep=function(){this._hideStep(this._steps[this._firstVisibleStep],!0);this._firstVisibleStep++};AdfOverflowSupport.prototype._hideEndStep=function(){this._hideStep(this._steps[this._lastVisibleStep]);this._lastVisibleStep--};
AdfOverflowSupport.prototype._showStep=function(a,b){this._showElements(a.elements);this._hideOverflowElements(a.overflowElements,b);this._swapElements(a.swapElements,!0)};AdfOverflowSupport.prototype._hideStep=function(a,b){this._hideElements(a.elements);this._showOverflowElements(a.overflowElements,b);this._swapElements(a.swapElements)};AdfOverflowSupport.prototype._hideElements=function(a){for(var b=a.length,d=0;d<b;d++){var e=a[d];e._display=e.style.display;e.style.display="none"}};
AdfOverflowSupport.prototype._showElements=function(a){for(var b=a.length,d=0;d<b;d++){var e=a[d];e.style.display=e._display||""}};AdfOverflowSupport.prototype._hideOverflowElements=function(a,b){for(var d=a.length,e=0;e<d;e++){var f=a[e];f.parentNode.removeChild(f)}};
AdfOverflowSupport.prototype._showOverflowElements=function(a,b){for(var d=a.length,e=b?this._startContainer:this._endContainer,f=0;f<d;f++){var g=a[f];"before"==this._position||b&&"vertical"==this._orientation?e.appendChild(g):e.insertBefore(g,e.firstChild)}};AdfOverflowSupport.prototype._swapElements=function(a,b){for(var d=a.length,e=0;e<d;e++){var f=a[e],g=f[b?1:2];g.parentNode.insertBefore(f[0],g)}};
AdfOverflowSupport.prototype._removeStartButtonCallbacks=function(){var a=AdfAgent.AGENT,b=this._startIndicator;a.removeBubbleEventListener(b,"mousedown",this._startShowCall);a.removeBubbleEventListener(b,"keydown",this._startShowCall);a.removeBubbleEventListener(b,"mouseup",this._startButtonMouseUpCall);a.removeBubbleEventListener(b,"mouseout",this._startButtonMouseOutCall)};
AdfOverflowSupport.prototype._removeEndButtonCallbacks=function(){var a=AdfAgent.AGENT,b=this._endIndicator;a.removeBubbleEventListener(b,"mousedown",this._endShowCall);a.removeBubbleEventListener(b,"keydown",this._endShowCall);a.removeBubbleEventListener(b,"mouseup",this._endButtonMouseUpCall);a.removeBubbleEventListener(b,"mouseout",this._endButtonMouseOutCall)};
AdfOverflowSupport.prototype._removeSteps=function(){for(var a=this._steps;0<a.length;){var b=a.pop();AdfCollections.clear(b.elements);AdfCollections.clear(b.overflowElements);for(b=b.swapElements;0<b.length;){var d=b.pop();AdfCollections.clear(d)}}};AdfOverflowSupport.prototype._numberOfVisibleSteps=function(){var a=this._steps.length;return a-this._firstVisibleStep-(a-1-this._lastVisibleStep)};
AdfOverflowSupport.prototype._hideOverflowButtons=function(){switch(this._type){case "end":AdfDomUtils.removeCSSClassName(this._element,"p_AFEndOverflow");break;case "start":AdfDomUtils.removeCSSClassName(this._element,"p_AFStartOverflow");break;case "both":AdfDomUtils.removeCSSClassName(this._element,"p_AFEndOverflow");AdfDomUtils.removeCSSClassName(this._element,"p_AFStartOverflow");break;case "droplist":AdfDomUtils.removeCSSClassName(this._element,"p_AFOverflowDroplist")}};
AdfOverflowSupport.prototype._showOverflowButtons=function(a){if(a)switch(this._type){case "end":AdfDomUtils.addCSSClassName(this._element,"p_AFEndOverflow");break;case "start":AdfDomUtils.addCSSClassName(this._element,"p_AFStartOverflow");break;case "both":AdfDomUtils.addCSSClassName(this._element,"p_AFEndOverflow");AdfDomUtils.addCSSClassName(this._element,"p_AFStartOverflow");break;case "droplist":AdfDomUtils.addCSSClassName(this._element,"p_AFOverflowDroplist")}else 0<this._firstVisibleStep&&
0<this._startContainer.childNodes.length&&(this._supportsDroplist()?AdfDomUtils.addCSSClassName(this._element,"p_AFOverflowDroplist"):AdfDomUtils.addCSSClassName(this._element,"p_AFStartOverflow")),this._lastVisibleStep<this._steps.length-1&&0<this._endContainer.childNodes.length&&(this._supportsDroplist()?AdfDomUtils.addCSSClassName(this._element,"p_AFOverflowDroplist"):AdfDomUtils.addCSSClassName(this._element,"p_AFEndOverflow"))};
AdfOverflowSupport.prototype._resetActiveDescendant=function(a){if(!a)switch(this._type){case "end":a=this._endContainer;break;case "start":a=this._startContainer;break;case "droplist":a=this._droplistContainer;break;case "both":AdfLogger.LOGGER.warning("Roving tab index not yet supported for overflow type 'both'!");return}this._activeDescendant&&this._activeDescendant.setAttribute("tabIndex","-1");this._activeDescendant=AdfFocusUtils.setFirstActiveDescendant(a,{includeVisibilityHidden:!0,includeDisplayNone:!0})};