OracleJavaScript API Reference for Oracle ADF Faces

 

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

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

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.AdfDhtmlValuePeer
                           |
                           +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlEditableValuePeer
                                 |
                                 +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlInputBasePeer
                                       |
                                       +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlInputListOfValuesBasePeer
Direct Known Subclasses:
AdfDhtmlInputComboboxListOfValuesPeer, AdfDhtmlInputListOfValuesPeer

public class AdfDhtmlInputListOfValuesBasePeer
extends AdfDhtmlInputBasePeer
Base Peer for the inputListOfValues components.



Field Summary

private static Object
_clientId
private static Object
_DIALOG_SUBID
private static Object
_INTERNAL_TABLE_ID
private static Object
_LOVINTERNAL_EVENT_QUEUED
private static Object
_OK_PRESSED
private static Object
_POPUP_SUBID
private static Object
_SHOWN


Fields inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlEditableValuePeer

ComponentLabelChanged


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

addComponentPropertyChanges, addComponentPropertyGetters, BUSY_STYLECLASS, DISABLED_STYLECLASS, DRAG_SOURCE_STYLECLASS, DROP_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
AdfDhtmlInputListOfValuesBasePeer()
Base Peer for the inputListOfValues components.


Method Summary

protected Object
AutoTab(Object component, Object node)
When autoTab is set to true and the maxlength for the input has been reached, we do a tab to the next possible tabstop, using AdfFoucsUtils.
protected Object
FocusInputElement(Object clientId)
The function to set the focus on the input element of the component called from the server when the returnPopupDataEvent is queued
protected Object
FocusNextElement(Object node)
Sets the focus on the next component element which is a tabstop called from AutoTab function
private static Object
_getLovPopup(Object lovClientId)
Convenience function to get the lovpopup component using the lov component clientID
protected Object
HandleComponentDblClick(Object componentEvent)
Event handler for the double click on the table component inside dialog
protected Object
HandleComponentDialog(Object componentEvent)
Event handler for the dialog event.
protected Object
HandleComponentKeyDown(Object componentEvent)
protected Object
HandleComponentKeyPress(Object componentEvent)
Implements keyPress event handling for lov components.
protected Object
HandleComponentKeyUp(Object componentEvent)
Implements keyUp event handling for lov components.
protected Object
HandleComponentPopupClosed(Object componentEvent)
Handler for the popup closed event, sets the _shown attribute to false om lov component when the popup dialog is closed
protected Object
HandleComponentSelection(Object componentEvent)
When the row in the search table is selected, it will queue the event to set the selected row key in a separate request.
protected Object
HandleDomChange(Object component, Object domEvent)
DOM change event event handler.
protected static Object
InitSubclass()
Initialize the dialog events for the lov popup dialog and double click events to select the row and return the value when double click happens inside a table
protected Object
IsKeyEventInInput(Object component, Object componentEvent)
Returns true if the key is pressed inside the input field
protected Object
IsLovPopupVisible(Object clientId)
Convenience function to know whether the lov popup is visible or not
protected Object
IsNoteWindowVisible(Object component)
private Object
_queueLovInternalEvent(Object component, Object targetNode)
verifies whether the value is changed after the input element got focus and queues the lovInternalEvent if the value is changed.
protected Object
SetDisplayValue(Object component, Object domElement, Object newValue)
Set the display string, Overridden as rows attribute is not defined on LOV components
private static Object
_setShown(Object component, Object shown)
convenience function to set the _shown property on the component to decide whether the pop dialog is shown or not
protected Object
ShowNoteWindow(Object component, Object isMouseOver)
- kill any timeout to show the note window - if there is no note window visible create it if needed - if there is a note window shown and isMouseOver is false change the autodismiss hint to 'menu'
protected Object
ShowPopupDialog(Object clientId)
The function to show the Lov popup when the search icon is clicked or user changes value and tabs out of the input field (applicable only when autosubmit=true)
public Object
showToolbarPopup(Object clientId, Object popupId)
This funtion will be called when the commandToolbarButton inside the lov dialog is clicked.
private Object
_toolbarPopupClosed(Object componentEvent)
This function will be called when the toolbar popup is closed.


Methods inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlInputBasePeer

GetSubmittedValue, HandleComponentBlur, HandleComponentFocus, RunValidation, ShouldShowHint, __simulateBlur, VetoBlurValidation


Methods inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlEditableValuePeer

autoSubmit, BindToComponent, ComponentChanged, __componentLabelChanged, ComponentSubmittedValueChanged, disableBrowserAutoComplete, Focus, GetComponentLabel, GetComponentSubmittedValue, GetComponentValue, GetContentNode, GetContentNodeId, GetDisplayValue, GetNoteWindowAlignmentHint, GetNoteWindowAlignmentNode, GetValidatorHints, HandleComponentClick, HideNoteWindow, InitDomElement, IsInitialized, LazyInitialize, MessageNotify, MessageShow, ShowNoteWindowMouseOver, StashOldValue, Validate, ValidateAndStashNewValue, ValidateIfStashedOldValue, VetoShowNoteWindow, WasSubmitted


Methods inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlValuePeer

ComponentValueChanged, getConvertedObject, getConvertedValue, getFormatHint, GetNullDefault, isEmpty


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

addComponentEventHandlers, addComponentPropertyChanges, addComponentPropertyGetters, addDomEventHandlers, addEventHandlerToDomInstance, addSuppressedPPRAttributes, bind, cancelAllPopups, cancelPopup, ChildVisibilityChanged, ComponentInlineStyleChanged, ComponentPropertyChanged, componentRemoved, ComponentRemoved, ComponentStyleClassChanged, ComponentVisibleChanged, ConvertClientIdToLocator, convertLocatorToClientId, CreateDraggableNode, createPeerClass, createSubId, CreateSubId, DefaultInitClass, DispatchComponentEvent, domReplaceNotify, DomReplaceNotify, 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, GetRichResourceURL, getSubIdDomElement, GetSubIdDomElement, hideAllPopups, hidePopup, Init, InitClass, initialize, isActive, isInActiveHeirarchy, isPopupVisible, messageNotify, 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


_clientId

private static Object _clientId

_DIALOG_SUBID

private static Object _DIALOG_SUBID

_INTERNAL_TABLE_ID

private static Object _INTERNAL_TABLE_ID

_LOVINTERNAL_EVENT_QUEUED

private static Object _LOVINTERNAL_EVENT_QUEUED

_OK_PRESSED

private static Object _OK_PRESSED

_POPUP_SUBID

private static Object _POPUP_SUBID

_SHOWN

private static Object _SHOWN

Constructor Detail


AdfDhtmlInputListOfValuesBasePeer

public AdfDhtmlInputListOfValuesBasePeer()

Base Peer for the inputListOfValues components.

Method Detail


AutoTab

protected Object AutoTab(Object component,
                         Object node)

When autoTab is set to true and the maxlength for the input has been reached, we do a tab to the next possible tabstop, using AdfFoucsUtils. This function should only be called from within HandleComponentKeyUp!

Parameters:
component    
node    
Return:
Object
See also:
"AdfDhtmlInputTextPeer.prototype.AutoTab"

FocusInputElement

protected Object FocusInputElement(Object clientId)

The function to set the focus on the input element of the component called from the server when the returnPopupDataEvent is queued

Parameters:
clientId    
Return:
Object

FocusNextElement

protected Object FocusNextElement(Object node)

Sets the focus on the next component element which is a tabstop called from AutoTab function

Parameters:
node    
Return:
Object

_getLovPopup

private static Object _getLovPopup(Object lovClientId)

Convenience function to get the lovpopup component using the lov component clientID

Parameters:
lovClientId    
Return:
Object

HandleComponentDblClick

protected Object HandleComponentDblClick(Object componentEvent)

Event handler for the double click on the table component inside dialog

Parameters:
componentEvent    
Return:
Object

HandleComponentDialog

protected Object HandleComponentDialog(Object componentEvent)

Event handler for the dialog event. sets the instance variable to true when ok button is pressed to queue the returnPopupData event in popupClosed event handler only when ok button is pressed and ignore it when cancel is pressed

Parameters:
componentEvent    
Return:
Object

HandleComponentKeyDown

protected Object HandleComponentKeyDown(Object componentEvent)

Parameters:
componentEvent  -  Key Down event Implements keyboard handling for the lov components for eg: value change and tab-out or enter will open the search and select dialog
Return:
Object

HandleComponentKeyPress

protected Object HandleComponentKeyPress(Object componentEvent)

Implements keyPress event handling for lov components. Cancels the event and stops from bubbling when the lovInternal event is queued on Enter key or Tab key press

Parameters:
componentEvent    
Return:
Object

HandleComponentKeyUp

protected Object HandleComponentKeyUp(Object componentEvent)

Implements keyUp event handling for lov components. Cancels the event and stops from bubbling when the lovInternal event is queued on Enter key or Tab key press

Parameters:
componentEvent    
Return:
Object
Overrides:
AdfDhtmlEditableValuePeer.HandleComponentKeyUp(Object)

HandleComponentPopupClosed

protected Object HandleComponentPopupClosed(Object componentEvent)

Handler for the popup closed event, sets the _shown attribute to false om lov component when the popup dialog is closed

Parameters:
componentEvent    
Return:
Object

HandleComponentSelection

protected Object HandleComponentSelection(Object componentEvent)

When the row in the search table is selected, it will queue the event to set the selected row key in a separate request. This will avoid the selection and the query event to get processed same time.

Parameters:
componentEvent    
Return:
Object

HandleDomChange

protected Object HandleDomChange(Object component,
                                 Object domEvent)

DOM change event event handler. This gets called when the text is changed. and it will validate the value.

Parameters:
component  -  Component that this peer will be associated with
domEvent  -  event on the dom
Return:
Object

InitSubclass

protected static Object InitSubclass()

Initialize the dialog events for the lov popup dialog and double click events to select the row and return the value when double click happens inside a table

Return:
Object
Overrides:
AdfDhtmlValuePeer.InitSubclass()

IsKeyEventInInput

protected Object IsKeyEventInInput(Object component,
                                   Object componentEvent)

Returns true if the key is pressed inside the input field

Parameters:
component    
componentEvent    
Return:
Object

IsLovPopupVisible

protected Object IsLovPopupVisible(Object clientId)

Convenience function to know whether the lov popup is visible or not

Parameters:
clientId  -  of the lov component
Return:
Object - true if the popup is visible else false

IsNoteWindowVisible

protected Object IsNoteWindowVisible(Object component)

Parameters:
component    
Return:
Object
Overrides:
AdfDhtmlEditableValuePeer.IsNoteWindowVisible(Object)

_queueLovInternalEvent

private Object _queueLovInternalEvent(Object component,
                                      Object targetNode)

verifies whether the value is changed after the input element got focus and queues the lovInternalEvent if the value is changed. this gets called when tab key or enter key is pressed. this function depends on the inputbasepeer stashing the last value as expando property

Parameters:
component    
targetNode  -  , input dom element
Return:
Object

SetDisplayValue

protected Object SetDisplayValue(Object component,
                                 Object domElement,
                                 Object newValue)

Set the display string, Overridden as rows attribute is not defined on LOV components

Parameters:
component    
domElement    
newValue  -  new string to be displayed
Return:
Object
Overrides:
AdfDhtmlValuePeer.SetDisplayValue(Object, Object, Object)

_setShown

private static Object _setShown(Object component,
                                Object shown)

convenience function to set the _shown property on the component to decide whether the pop dialog is shown or not

Parameters:
component    
shown    
Return:
Object

ShowNoteWindow

protected Object ShowNoteWindow(Object component,
                                Object isMouseOver)

- kill any timeout to show the note window - if there is no note window visible create it if needed - if there is a note window shown and isMouseOver is false change the autodismiss hint to 'menu'

Parameters:
component    
isMouseOver    
Return:
Object
Overrides:
AdfDhtmlEditableValuePeer.ShowNoteWindow(Object, Object)

ShowPopupDialog

protected Object ShowPopupDialog(Object clientId)

The function to show the Lov popup when the search icon is clicked or user changes value and tabs out of the input field (applicable only when autosubmit=true)

Parameters:
clientId  -  of the lov component
Return:
Object

showToolbarPopup

public Object showToolbarPopup(Object clientId,
                               Object popupId)

This funtion will be called when the commandToolbarButton inside the lov dialog is clicked. This is attached to the commandToolbarButton through the clientListener on server and will be called from the _createSearchContentFacet() method of SimpleInputListOfValuesRendererBase.

Parameters:
clientId  -  of the lov component
popupId  -  clientId of the popup component
Return:
Object

_toolbarPopupClosed

private Object _toolbarPopupClosed(Object componentEvent)

This function will be called when the toolbar popup is closed. This is registered as the Listener for the popupClosed event for the popup with the id createPopupId.

Parameters:
componentEvent    
Return:
Object

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

 

Generated on 2010.03.26 00:15 UTC
Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.