OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adfinternal.view.js.laf.dhtml.rich
Class AdfDhtmlQuickQueryPeer

Warning:

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, DISABLED_STYLECLASS, DRAG_SOURCE_STYLECLASS, DROP_TARGET_STYLECLASS, FOCUS_TARGET_STYLECLASS, HOVER_TARGET_STYLECLASS, READONLY_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.


Methods inherited from oracle.adf.view.js.laf.rich.AdfRichUIPeer

addComponentEventHandlers, addComponentPropertyChanges, addComponentPropertyGetters, addDomEventHandlers, addEventHandlerToDomInstance, addSuppressedPPRAttributes, bind, BindToComponent, cancelAllPopups, cancelPopup, ChildVisibilityChanged, ComponentInlineStyleChanged, ComponentPropertyChanged, componentRemoved, ComponentRemoved, ComponentStyleClassChanged, ComponentVisibleChanged, ConvertClientIdToLocator, convertLocatorToClientId, CreateDraggableNode, createPeerClass, createSubId, CreateSubId, DefaultInitClass, descendantMessageChanged, DescendantMessageChanged, DispatchComponentEvent, domReplaceNotify, DomReplaceNotify, focus, Focus, getAbsoluteId, getAbsoluteLocator, getAccessibleName, GetAccessibleName, getAllPopups, getComponent, GetComponent, GetComponentId, getComponentParent, getComponentProperty, GetComponentVisible, getDescendantComponents, getDomContentElement, getDomContentElementForComponent, GetDomContentElementForNode, getDomDocument, getDomElement, getDomElementForComponent, getDomNode, GetDomNodeForCommentComponent, getDomNodeForComponent, getDragOverFeedback, GetDragOverFeedback, getDragTransferable, GetDragTransferable, getFirstAncestorComponent, getInlineEditor, GetInlineEditor, getInlineStyleProperty, getLocatorByDomElement, getPagePosition, getPopupWindow, getReadyState, GetReadyState, GetRichResourceURL, getSubIdDomElement, GetSubIdDomElement, hideAllPopups, hidePopup, Init, InitClass, InitDomElement, initialize, isActive, isInActiveHeirarchy, isPopupVisible, messageNotify, MessageNotify, messageShow, MessageShow, needsChildVisibilityChanges, PopupClosed, processPushData, ProcessPushData, registerKeyStroke, replaceDomElement, ReplaceDomElement, resizeNotify, ResizeNotify, scrollIntoView, ScrollIntoView, setBusy, SetBusy, setInlineStyleProperty, showContextMenu, showPopup, TruncateClientId, TruncateClientIdOnceImpl, UnbindFromComponent, unregisterKeyStroke, visitChildren


Methods inherited from oracle.adf.view.js.base.AdfUIPeer

getDefaultDragRecognizer, getParentPeer, initiateDrag, isVisible, needsResizeNotify


Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, 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"

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"

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

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

 

Generated on 2011.04.27 02:28 UTC
Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.