Method Summary
 | 
private static Object | 
_addBarMenu(String clientId) 
- 
Registers this menu as a menu directly in a menuBar 
 
 
 | 
private static Object | 
_addToDetachedMenus(String clientId) 
- 
Adds the clientid to the list of detached menu's. 
 
 
 | 
private Object | 
_calculateReattachPosition() 
- 
Returns position where detached menu should reattach. 
 
 
 | 
private Object | 
_cancelHiding() 
- 
Cancels closing of the popup, if scheduled. 
 
 
 | 
private static Object | 
_cancelKeyPress(Event event) 
- 
Callback for cancelling the key press on the document in firefox. 
 
 
 | 
public Object | 
cancelPopup() 
- 
Override of AdfRichUIPeer#cancelPopup so we can do our own special processing. 
 
 
 | 
public static Object | 
cancelShowing() 
- 
If a popup was delayed for showing, this method will cancel the showing. 
 
 
 | 
private Object | 
_clearHighlight() 
 
 | 
public Object | 
close(Object immediate, Object keepSelectedStyle) 
- 
Closes this peer's menu. 
 
 
 | 
private Object | 
_closeDetachedMenu(Object event) 
- 
Close a detached menu. 
 
 
 | 
protected Object | 
ComponentDisabledChanged(Object component, Object domElement, Object newValue, Object oldValue) 
- 
Setter for disabled property 
 
 
 | 
protected Object | 
ComponentRemoved(Object component) 
- 
Handles the removal of a component. 
 
 
 | 
protected Object | 
ComponentTextChanged(Object component, Object domElement, Object newValue, Object oldValue) 
- 
Text property change handler, needed for inline editing. 
 
 
 | 
private Object | 
_contains(Object element) 
- 
Checks if the given element is in this component. 
 
 
 | 
private Object | 
_createDetachableWindow() 
- 
Creates a detachable window for the component. 
 
 
 | 
private Object | 
_createMenuPopupHints(Object baseHints, Object focusOnFirstElement) 
- 
Given a base set of popup hints, create popup hints for the menu 
 
 
 | 
private Object | 
_delayPopupHiding(Object deltaTimeout) 
- 
Delays the hiding of the popup, so users can move over other menu-items. 
 
 
 | 
private Object | 
_delayPopupHidingCallback() 
- 
Callback for the delaying of hide(). 
 
 
 | 
private Object | 
_delayShow() 
- 
Delays the showing of the popup. 
 
 
 | 
private Object | 
_delayShowCallback() 
- 
Callback for the delaying of show(). 
 
 
 | 
private Object | 
_deselectElement() 
- 
Remove all highlighting from the menu. 
 
 
 | 
private Object | 
_dragEnd() 
- 
Callback that is called on the drag end off a floating submenu 
 
 
 | 
private Object | 
_dragStart() 
- 
Callback that is called on the drag start off a floating submenu 
 
 
 | 
private Object | 
_endScroll() 
- 
Stops the scrolling of the menu 
 
 
 | 
private static Object | 
_focusFirstElementInMenuBar() 
- 
Focuses the first element in a menuBar. 
 
 
 | 
private static Object | 
_focusNextDetachedMenuKeyHandler() 
- 
Key handler call that focuses on the next detached menu (if available). 
 
 
 | 
private Object | 
_getDepth() 
- 
Gets the menu depth 
 
 
 | 
protected Object | 
GetInlineEditor(Object event) 
- 
Overwriten hook from AdfRichUIPeer. 
 
 
 | 
private Object | 
_getMenuElement() 
- 
Gets the (sub)menu-element. 
 
 
 | 
private Object | 
_getMenuItemHeight() 
- 
Get the menu item height, which is used for scrolling. 
 
 
 | 
private Object | 
_getMenuPopup() 
- 
Get the menu's popup window. 
 
 
 | 
private Object | 
_getParentId() 
- 
Gets the the id of the first parentNode having an id. 
 
 
 | 
private Object | 
_handleArrowKeys(Object keyCode, Object componentEvent) 
- 
Handler for arrow key events. 
 
 
 | 
protected Object | 
HandleComponentBlur(Object componentEvent) 
- 
Menus lose highlight on blur. 
 
 
 | 
protected Object | 
HandleComponentClick(Object componentEvent) 
 
 | 
protected Object | 
HandleComponentFocus(Object componentEvent) 
- 
Handle component focus. 
 
 
 | 
private Object | 
_handleComponentFocusRootMenu() 
- 
When a root menu gets focus, there are 3 outcomes: 
 
 
 | 
private Object | 
_handleComponentFocusSubMenu() 
- 
When a sub menu gets focus, we highlight the submenu and close any open menus that have a greater depth than the submenu. 
 
 
 | 
protected Object | 
HandleComponentKeyDown(Object componentEvent) 
- 
Component keyboard key down event handler 
 
 
 | 
protected Object | 
HandleComponentKeyPress(Object componentEvent) 
- 
Component keyboard key press event handler 
 
 
 | 
protected Object | 
HandleComponentKeyUp(Object componentEvent) 
- 
Component keyboard key up event handler. 
 
 
 | 
protected Object | 
HandleComponentMouseDown(Object componentEvent) 
 
 | 
protected Object | 
HandleComponentMouseOut(Object componentEvent) 
 
 | 
protected Object | 
HandleComponentMouseOver(Object componentEvent) 
 
 | 
protected Object | 
HandleComponentMouseUp(Object componentEvent) 
 
 | 
private Boolean | 
_handleHideRequest(AdfUIComponent component, String clientId) 
- 
Common handling for both 'hidePopup' and 'cancelPopup' requests. 
 
 
 | 
private static Object | 
_handleMenuItemAccessKeys(Object containerElement, Object componentEvent) 
- 
Handle menu item access keys. 
 
 
 | 
private Object | 
_hideFetchingDataPopup() 
- 
Hides the fetching data message used during lazy content retrieval 
 
 
 | 
public Object | 
hidePopup() 
- 
Override of AdfRichUIPeer#hidePopup so we can do our own special processing. 
 
 
 | 
protected Object | 
Init(Object component) 
- 
Initializes the instance. 
 
 
 | 
protected Object | 
InitDomElement(Object component, Object domElement) 
- 
Initialize the associated domElement when the peer is created. 
 
 
 | 
private Object | 
_initElements(Object component, Object clientId, Object menuElement) 
 
 | 
protected static Object | 
InitSubclass() 
 
 | 
public Object | 
isContextMenu() 
- 
Returns true if this is a context type menu (a menu in a popup). 
 
 
 | 
public Object | 
isDetached() 
- 
Returns true if menu is detached. 
 
 
 | 
private Object | 
_isDisabled() 
- 
Returns if the component is disabled or not 
 
 
 | 
private Object | 
_isMenuVisible() 
- 
Returns true if the menu popup is currently visible (open). 
 
 
 | 
public Object | 
isRootMenu() 
- 
Returns true if this is a root level menu (a first level menu) 
 
 
 | 
private Object | 
_isSubMenu() 
- 
Returns true if this is a submenu (i.e., a vertical menu). 
 
 
 | 
private Object | 
_makeDetached() 
- 
Changes the state of the popupMenu to the detached state. 
 
 
 | 
private static Object | 
_menuBarKeyHandler(Event event) 
- 
Handler that focuses the first item in a menuBar if Ctrl+Shift+M is pressed. 
 
 
 | 
private Object | 
_moveDetachable(Object x, Object y) 
- 
Moves the floating submenu (used for moving floating submenu with keyboard) 
 
 
 | 
private Object | 
_onHandleClick(Object event) 
- 
Handler for click on detachable menu handle. 
 
 
 | 
protected Object | 
PopupClosed(Object component, Object contentDom, Object popupId) 
- 
Moves the menu from the popup back into root element so that it can be cleaned up on a PPR 
 
 
 | 
private Object | 
_reattachMenu() 
- 
If the menu is currently detached, temporarily reattachs the menu. 
 
 
 | 
private static Object | 
_redetachMenu() 
- 
Detached menus are temporarily reattached when they are selected from their parent menu. 
 
 
 | 
private static Object | 
_removeBarMenu(String clientId) 
- 
Unregisters this menu as a menu directly in a menuBar 
 
 
 | 
private static Object | 
_removeFromDetachedMenus(String clientId) 
- 
Removes the clientid from the list of detached menu's. 
 
 
 | 
protected Object | 
ReplaceDomElement(HTMLElement newElement, HTMLElement oldElement) 
- 
Replaces the a dom element contained in this peer. 
 
 
 | 
private Object | 
_scroll() 
- 
Callback which gets called in an interval when the menu is scrolling 
 
 
 | 
public Object | 
show(Object popupHints, Object focusOnFirstElement) 
- 
Shows the menu. 
 
 
 | 
private Object | 
_showFetchingDataPopup() 
- 
Shows fetching data message used during lazy content retrieval. 
 
 
 | 
public Object | 
showPopup(Object component, Object element, Object hints, Object popupId) 
- 
Shows the menu popup. 
 
 
 | 
private Object | 
_snapDetachedMenu(Object reattachPosition) 
- 
Animates a detached submenu back to its default position. 
 
 
 | 
private Object | 
_startScroll(Object isScrollDown, Object isTimerSkipped) 
- 
Starts the scrolling of a scrollable menu. 
 
 
 | 
public Object | 
updateScrollIconsState() 
- 
Adjusts the state of the scrollUp and scrollDown buttons based on whether or not there is space to scroll in that direction. 
 
 
 |