# 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.rich
Class AdfDhtmlQuickQueryPeer

## 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.adf.view.js.base.AdfUIPeer
                   |
                   +--oracle.adf.view.js.laf.rich.AdfRichUIPeer
                         |
                         +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlQuickQueryPeer

    public class AdfDhtmlQuickQueryPeer
    extends AdfRichUIPeer

make AdfDhtmlQuickQueryPeer a subclass of AdfRichUIPeer

## Field Summary
`private static Object` | `_SEARCH_ICON_ID`

### Fields inherited from oracle.adf.view.js.laf.rich.AdfRichUIPeer
`addComponentPropertyChanges, addComponentPropertyGetters, BUSY_STYLECLASS, CreateSubId, DISABLED_STYLECLASS, DRAG_READY_STYLECLASS, DRAG_SOURCE_STYLECLASS, DROP_TARGET_STYLECLASS, FOCUS_TARGET_STYLECLASS, HOVER_TARGET_STYLECLASS, READONLY_STYLECLASS, SELECTED_STYLECLASS`

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

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

## Constructor Summary
`public` | `AdfDhtmlQuickQueryPeer()` make AdfDhtmlQuickQueryPeer a subclass of AdfRichUIPeer

## Method Summary
`protected Object` | `HandleComponentClick(AdfComponentEvent componentEvent)` Handle the Component click when user clicks on search Icon and add as the queryEvent
`protected Object` | `HandleComponentKeyDown(Object componentEvent)` When quickQuery component is used inside a dialog and the Enter key pressed, keydown event bubbles up to the dialog potentially causing it to close, especially if the dialog has an OK outcome.
`protected Object` | `HandleComponentKeyPress(Object componentEvent)` When quickQuery component is used inside a dialog and the Enter key pressed, keydown event bubbles up to the dialog potentially causing it to close, especially if the dialog has an OK outcome.
`protected Object` | `HandleComponentKeyUp(AdfComponentEvent componentEvent)` Component key up handler that processes the enter key event and queues a QueryEvent except if the sub-component consumes it.
`protected static Object` | `InitSubclass()` Initialize the peer class
`private Boolean` | `_isEnterKeyNotConsumed(Object componentEvent)` Return true if Enter key is pressed on a component that does not consume it else return false.
`private Object` | `_queueQueryEvent(Object component)`

### Methods inherited from oracle.adf.view.js.laf.rich.AdfRichUIPeer
`addComponentEventHandlers, addComponentPropertyChanges, addComponentPropertyGetters, addDomEventHandlers, addEventHandlerToDomInstance, addSuppressedPPRAttributes, applyDragReadyState, ApplyDragReadyState, applyDragSourceState, ApplyDragSourceState, bind, BindToComponent, cancelAllPopups, cancelPopup, ChildVisibilityChanged, clearDragReadyState, ClearDragReadyState, clearDragSourceState, ClearDragSourceState, ComponentInlineStyleChanged, ComponentPropertyChanged, componentRemoved, ComponentRemoved, ComponentStyleClassChanged, ComponentVisibleChanged, ConvertClientIdToLocator, convertLocatorToClientId, createComponentEvent, CreateComponentEvent, CreateDraggableNode, createInnerPeerClassWithSubId, createPeerClass, createSubId, DefaultInitClass, descendantMessageChanged, DescendantMessageChanged, DispatchComponentEvent, DispatchUncanceledComponentEvent, domReplaceNotify, DomReplaceNotify, focus, Focus, getAbsoluteId, getAbsoluteLocator, getAccessibleName, GetAccessibleName, getAllPopups, GetBestMatchSubId, getComponent, GetComponent, GetComponentId, getComponentParent, getComponentProperty, GetComponentVisible, getDescendantComponents, getDomContentElement, getDomContentElementForComponent, GetDomContentElementForNode, getDomDocument, getDomElement, getDomElementForComponent, getDomNode, GetDomNodeForCommentComponent, getDomNodeForComponent, getDomRootNodes, GetDomRootNodes, getDragOverFeedback, GetDragOverFeedback, getDragTransferable, GetDragTransferable, GetElementToReplaceWithSVG, getFallbackDomElement, GetFallbackDomElement, getFirstAncestorComponent, getInlineEditor, GetInlineEditor, getInlineStyleProperty, getLocatorByDomElement, getPagePosition, getPopupWindow, getReadyState, GetReadyState, GetRichResourceURL, getSubIdDomElement, GetSubIdDomElement, hideAllPopups, hidePopup, InitClass, InitDomElement, initialize, isAbsoluteLocatorCacheable, isActive, isBusy, isComponentContainedByElement, isInActiveHeirarchy, isInlineSVGIcon, isPopupVisible, messageNotify, MessageNotify, messageShow, MessageShow, needsChildVisibilityChanges, needsFocusTargetStyleClass, PopupClosed, processPushData, ProcessPushData, registerADSAccessibility, RegisterADSAccessibility, registerKeyStroke, replaceDomElement, ReplaceDomElement, resizeNotify, ResizeNotify, scrollIntoView, ScrollIntoView, setBusy, SetBusy, setInlineStyleProperty, showContextMenu, showPopup, simulateMouse, SimulateMouseOnDescendant, TruncateClientId, TruncateClientIdOnceImpl, UnbindFromComponent, unregisterKeyStroke, UpdateMessageType, visitChildren`

### Methods inherited from oracle.adf.view.js.base.AdfUIPeer
`getDefaultDragRecognizer, getParentPeer, Init, initiateDrag, isVisible, needsResizeNotify`

### 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

### _SEARCH_ICON_ID

`private static Object _SEARCH_ICON_ID`

## Constructor Detail

### AdfDhtmlQuickQueryPeer

`public AdfDhtmlQuickQueryPeer()`
  make AdfDhtmlQuickQueryPeer a subclass of AdfRichUIPeer

## Method Detail

### HandleComponentClick

`protected Object HandleComponentClick(AdfComponentEvent componentEvent)`
  Handle the Component click when user clicks on search Icon and add as the queryEvent
  Parameters:

    `componentEvent` |  |

  Return:
    `Object`

### HandleComponentKeyDown

`protected Object HandleComponentKeyDown(Object componentEvent)`
  When quickQuery component is used inside a dialog and the Enter key pressed, keydown event bubbles up to the dialog potentially causing it to close, especially if the dialog has an OK outcome. Canceling the keydown event, when it is not consumed by any of the subcomponents of the quickQuery does, is therefore required.
  Parameters:

    `componentEvent` | - | the component event generated by enter key down.

  Return:
    `Object`
  See also:
    `AdfDhtmlDialogPeer.HandleComponentKeyDown(AdfUIInputEvent)`

### HandleComponentKeyPress

`protected Object HandleComponentKeyPress(Object componentEvent)`
  When quickQuery component is used inside a dialog and the Enter key pressed, keydown event bubbles up to the dialog potentially causing it to close, especially if the dialog has an OK outcome. Canceling the keydown event, when it is not consumed by any of the subcomponents of the quickQuery does, is therefore required.
  Parameters:

    `componentEvent` | - | the component event generated by enter key press.

  Return:
    `Object`
  See also:
    `AdfDhtmlDialogPeer.HandleComponentKeyPress(AdfUIInputEvent)`

### HandleComponentKeyUp

`protected Object HandleComponentKeyUp(AdfComponentEvent componentEvent)`
  Component key up handler that processes the enter key event and queues a QueryEvent except if the sub-component consumes it. - Enter on the Go button should not queue a second QueryEvent, as the click event (generated in addition to key events) would have already queued it. - Enter on the Advanced link should not queue a QueryEvent - In general if the component consumes the Enter key (such autoSubmit components) the QueryEvent should not additionally queued.
  Parameters:

    `componentEvent` |  |

  Return:
    `Object`

### InitSubclass

`protected static Object InitSubclass()`
  Initialize the peer class
  Return:
    `Object`

### _isEnterKeyNotConsumed

`private Boolean _isEnterKeyNotConsumed(Object componentEvent)`
  Return true if Enter key is pressed on a component that does not consume it else return false. We need to track the cases where Enter key actually means something to the native target: a. when focus is in a textarea (inserts a new line) b. when focus is on an anchor (executes a command or is a GET) c. when focus is on a button (input type=button, input type=submit, input type=reset, or plain button) d. when the key event has been canceled specifically by another component/peer (e.g. there may be other input components that want to cancel this key and prevent executing a search. Outside of the above special cases is the Enter key is pressed on a component that does not consume it , then return false.
  Parameters:

    `componentEvent` | - | the component event

  Return:
    `Boolean` - true if Enter key is pressed on a component that does not consume it

### _queueQueryEvent

`private Object _queueQueryEvent(Object component)`
  Parameters:

    `component` |  |

  Return:
    `Object`

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.