Method Summary
|
private static Object |
_addBarMenu(String clientId)
-
Registers this menu as a root menu directly in a menuBar
|
private static Object |
_addToDetachedMenus(String clientId)
-
Adds the clientid to the list of detached menu's.
|
private Object |
_animateReattach(Object reattachPosition)
-
Animate the detached menu reattach
|
private static Object |
_animateReattachComplete(Object args)
-
Callback invoked after animation of detached menu reattach has completed.
|
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.
|
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.
|
protected Object |
ComponentVisibleChanged(Object component, Object domElement, Object newValue, Object oldValue)
-
Override for extra visible state change handling.
|
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()
-
Schedule the menu to be shown (opened) after a 300ms delay.
|
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 |
_focusMenuBar()
-
Focuses on the menuBar (active descendant).
|
private static Object |
_focusNextDetachedMenuKeyHandler()
-
Key handler call that focuses on the next detached menu (if available).
|
private Object |
_focusNextMenuItem(Object rootElement)
-
Move the focus / highlight to the next (down) menu item.
|
private Object |
_focusPreviousMenuItem(Object rootElement)
-
Moves the focus / highlight to the previous (up) menu item.
|
private Object |
_getDepth()
-
Gets the menu depth
|
protected Object |
GetInlineEditor(Object event)
-
Overwriten hook from AdfRichUIPeer.
|
private Object |
_getLazyState()
|
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 (AdfDhtmlPopupMenu).
|
private Object |
_getParentId()
-
Gets the the id of the first parentNode having an id.
|
private Object |
_getShadowAnchor()
-
Get the shadow anchor for the menu.
|
private Object |
_handleArrowKeys(Object keyCode, Object componentEvent)
-
Handler for arrow key events.
|
protected Object |
HandleComponentBlur(Object componentEvent)
-
Menus lose highlight on blur.
|
protected Object |
HandleComponentFocus(Object componentEvent)
-
Handle component focus.
|
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 Object |
_handleCtrlArrowKeys(Object keyCode, Object componentEvent)
-
Handler for ctrl + arrow key events.
|
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 |
_handleMenuItemLeftArrowKey(Object componentEvent)
-
Handle left arrow key.
|
private Object |
_handleMenuItemRightArrowKey(Object componentEvent)
-
Handle right arrow key.
|
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).
|
private Object |
_isDetachable()
-
Returns if the component is detachable or not
|
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 on menuBar)
|
private Object |
_isSubMenu()
-
Returns true if this is a submenu (a level 2 or greater menu).
|
void |
__makeDetached()
-
Package private function called by internal code for testing.
|
private Object |
_makeDetached()
-
Changes the state of the popupMenu to the detached state.
|
private static Object |
_menuBarKeyHandler(Event event)
-
Handler that focuses on the 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 |
_moveShadow(Object showShadow)
-
Move the menu shadow.
|
private Object |
_onHandleClick(Object event)
-
Handler for click on detachable menu handle.
|
protected Object |
PopupClosed(Object component, Object contentDom, Object popupId)
-
Called from framework when a popup (including menu) is closed.
|
Object |
__preferredSizeChangeNotify(AdfUIComponent component)
-
Notification that the components preferred size has changed.
|
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 root 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.
|
public Object |
resetActiveDescendant()
-
Sets the first menu item as the active descendant.
|
private Object |
_scroll()
-
Callback which gets called in an interval when the menu is scrolling
|
private Object |
_setLazyState(String newState)
-
Set the lazy state to a new string value.
|
public Object |
setVisibleItems(Object items)
-
Sets the _maxDisplayItems property.
|
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 |
_showShadow(Object showShadow)
-
Show or hide the menu shadow.
|
Object |
__startScroll(boolean isScrollDown, Object isTimerSkipped)
-
Called internally for testing.
|
private Object |
_startScroll(boolean isScrollDown, boolean isTimerSkipped)
-
Starts the scrolling of a scrollable menu.
|
private Object |
_updateActiveDescendant(HTMLElement newActiveDescendant)
-
Update the set active descendant to a new child element
|
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.
|