# JavaScript API Reference for Oracle ADF Faces

Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.4.0) E81451-01
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |

SUMMARY: FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

# oracle.adfinternal.view.js.laf.dhtml.internalWindow
Class AdfDhtmlPopupMenu

## Warning:

- This is an unsupported, internal implementation class.
- Use an API class that might provide equivalent functionality instead.
- This class will change without notice.
- It is not recommended that you use anything in this class.

    org.ecmascript.object.Object
       |
       +--oracle.adf.view.js.base.AdfObject
             |
             +--oracle.adfinternal.view.js.laf.dhtml.internalWindow.AdfAbstractFloatingElement
                   |
                   +--oracle.adfinternal.view.js.laf.dhtml.internalWindow.AdfDhtmlPopupWindow
                         |
                         +--oracle.adfinternal.view.js.laf.dhtml.internalWindow.AdfDhtmlPopupMenu

    public class AdfDhtmlPopupMenu
    extends AdfDhtmlPopupWindow

A popup window that is used to diplay components with a menu display style

## Field Summary
`public Object` | `setShadowAnchor`

### Fields inherited from oracle.adfinternal.view.js.laf.dhtml.internalWindow.AdfDhtmlPopupWindow
`__CANCELED_EXPANDO, __POPUP_CONTAINER_ID, __POPUPID_EXPANDO, __REPLACEDOM_EXPANDO, setElement`

### Fields inherited from oracle.adf.view.js.base.AdfObject
`constructor, superclass`

### Fields inherited from org.ecmascript.object.Object
`prototype`

## Constructor Summary
`public` | `AdfDhtmlPopupMenu()` A popup window that is used to diplay components with a menu display style

## Method Summary
`public Object` | `activate()` Focus on the first element.
`protected HTMLElement` | `CreateDomElement()` Create and initialize the html.
`protected Object` | `CreateShadow(Boolean afterAnimation)` Creates the shadow for this popup window
`protected Object` | `DoResizeNotifyDom(Object content)` For now there is no use case for geometry management of the menu content.
`protected String` | `GetAnimateSkinProperty()`
`protected Object` | `GetAnimationDurationSkinProperty()` Returns the skin property for animation duriation
`protected HTMLElement` | `GetContentParent()` Gets the dom element that is the parent of the popup's content.
`protected HTMLElement` | `GetFocusContent()` Returns the content dom node for the menu.
`protected Object` | `GetLaunchSourceElement()` Get the launch source element (if available), which is the last menuBar item that had focus.
`protected Object` | `Init()` Initializes the instance.
`protected static Object` | `InitClass()`
`protected Object` | `RestoreScrollValues(Object domElement)` Ovverridden to do nothing since it is not needed for menus
`protected Object` | `SaveScrollValues(Object domElement)` Ovverridden to do nothing since it is not needed for menus
`protected Boolean` | `ShouldHideOnClip()` Returns false as menu popups do not close on clip.

### Methods inherited from oracle.adfinternal.view.js.laf.dhtml.internalWindow.AdfDhtmlPopupWindow
`addOpenedHandler, AnimateClosing, AnimateOpening, AnimateUsingWrapper, announceOpeningViaLiveRegion, autoSize, cancel, CloseAnimationComplete, ClosedPopup, destroy, DoShow, FocusOnFirstElement, GetAnimationDuration, GetCloseAnimationDuration, getContent, GetFocusOnOpen, getInitialPopupTailPosition, getLaunchSourceId, GetMaxWidth, getPopupClientId, GetPositionManagerIndex, getTailElement, getZorderScope, HandleEscapeKey, HandleKeyNavigation, HasShadow, hide, ImmediateZorderRegistration, isAncestorOrSelf, isAnimating, isPopupWindow, isVisible, NeedsCloseLink, OpenAnimationComplete, OpenedPopup, Position, removeAccessibleAttrs, setAccessibleAttrs, setCloseHandler, setCloseHandlerParam, setContent, SetFocusOnOpen, setPosition, setRestoreFocusId, shouldInvertPosition, show, WrapContent`

### Methods inherited from oracle.adfinternal.view.js.laf.dhtml.internalWindow.AdfAbstractFloatingElement
`CreateTable, getAlignElement, getAlignPosition, getElement, GetFirstFormId, GetFloatingType, getHeight, getLeft, getShadowAnchor, getTop, getWidth, isPreventScrollOnClose, raiseToFront, setAlignElement, setAlignPosition, setElement, setLeft, setPreventScrollOnClose, setShadowAnchor, setTop`

### Methods inherited from oracle.adf.view.js.base.AdfObject
`adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString`

## Field Detail

### setShadowAnchor

`public Object setShadowAnchor`

## Constructor Detail

### AdfDhtmlPopupMenu

`public AdfDhtmlPopupMenu()`
  A popup window that is used to diplay components with a menu display style

## Method Detail

### activate

`public Object activate()`
  Focus on the first element. No need to autosize, as this is done automatically by AdfDhtmlPopupWindow when a resize is detected. This is called by the AdfDhtmlMenuPeer when a detached menu initially becoming detached. A similar approach is found in AdfDhtmlSimpleFloat.
  Return:
    `Object`

### CreateDomElement

`protected HTMLElement CreateDomElement()`
  Create and initialize the html.
  Return:
    `HTMLElement` - the root dom element of this popup.
  Overrides:
    `AdfDhtmlPopupWindow.CreateDomElement()`

### CreateShadow

`protected Object CreateShadow(Boolean afterAnimation)`
  Creates the shadow for this popup window
  Parameters:

    `afterAnimation` | - | flag indicates that we want to create the shadow after animation

  Return:
    `Object`
  Overrides:
    `AdfDhtmlPopupWindow.CreateShadow(Boolean)`

### DoResizeNotifyDom

`protected Object DoResizeNotifyDom(Object content)`
  For now there is no use case for geometry management of the menu content.
  Parameters:

    `content` |  |

  Return:
    `Object`
  Overrides:
    `AdfDhtmlPopupWindow.DoResizeNotifyDom(Object)`

### GetAnimateSkinProperty

`protected String GetAnimateSkinProperty()`
  Return:
    `String` - null "-tr-animate" skinning property for the menu component.
  Overrides:
    `AdfDhtmlPopupWindow.GetAnimateSkinProperty()`

### GetAnimationDurationSkinProperty

`protected Object GetAnimationDurationSkinProperty()`
  Returns the skin property for animation duriation
  Return:
    `Object`
  Overrides:
    `AdfDhtmlPopupWindow.GetAnimationDurationSkinProperty(Object)`

### GetContentParent

`protected HTMLElement GetContentParent()`
  Gets the dom element that is the parent of the popup's content.
  Return:
    `HTMLElement` - contentParentElement the parent of the content
  Overrides:
    `AdfDhtmlPopupWindow.GetContentParent()`

### GetFocusContent

`protected HTMLElement GetFocusContent()`
  Returns the content dom node for the menu.
  Return:
    `HTMLElement` - content node area
  Overrides:
    `AdfDhtmlPopupWindow.GetFocusContent()`

### GetLaunchSourceElement

`protected Object GetLaunchSourceElement()`
  Get the launch source element (if available), which is the last menuBar item that had focus. This method is called during AdfDhtmlPopupWindow hide/_restoreFocus
  Return:
    `Object`
  Overrides:
    `AdfDhtmlPopupWindow.GetLaunchSourceElement()`

### Init

`protected Object Init()`
  Initializes the instance. Subclasses of AdfObject must call their superclass' Init
  Return:
    `Object`
  Overrides:
    `AdfObject.Init()`

### InitClass

`protected static Object InitClass()`
  Return:
    `Object`
  Overrides:
    `AdfDhtmlPopupWindow.InitClass()`

### RestoreScrollValues

`protected Object RestoreScrollValues(Object domElement)`
  Ovverridden to do nothing since it is not needed for menus
  Parameters:

    `domElement` |  |

  Return:
    `Object`
  Overrides:
    `AdfDhtmlPopupWindow.RestoreScrollValues(HTMLElement)`

### SaveScrollValues

`protected Object SaveScrollValues(Object domElement)`
  Ovverridden to do nothing since it is not needed for menus
  Parameters:

    `domElement` |  |

  Return:
    `Object`
  Overrides:
    `AdfDhtmlPopupWindow.SaveScrollValues(HTMLElement)`

### ShouldHideOnClip

`protected Boolean ShouldHideOnClip()`
  Returns false as menu popups do not close on clip.
  Return:
    `Boolean` - if popup window should hide on clip
  Overrides:
    `AdfDhtmlPopupWindow.ShouldHideOnClip()`

SUMMARY: FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.4.0) E81451-01
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |

Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.