OracleJavaScript API Reference for Oracle ADF Faces

 

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

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

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
Direct Known Subclasses:
AdfDhtmlCodeEditorPeer, AdfDhtmlInputColorPeer, AdfDhtmlInputDatePeer, AdfDhtmlInputListOfValuesBasePeer, AdfDhtmlInputNumberSpinboxBasePeer, AdfDhtmlInputRangeSliderPeer, AdfDhtmlInputTextPeer

public class AdfDhtmlInputBasePeer
extends AdfDhtmlEditableValuePeer
Base Peer for the input components.



Field Summary

private static Object
_LAST_VALUE


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

ComponentLabelChanged, ComponentShowRequiredChanged


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
AdfDhtmlInputBasePeer()
Base Peer for the input components.


Method Summary

protected Object
GetSubmittedValue(Object component, Object domElement)
Returns the submittedValue by getting the value of the input dom node.
protected Object
HandleComponentBlur(Object componentEvent)
protected Object
HandleComponentFocus(Object componentEvent)
protected static Object
InitSubclass()
public Object
needsFocusTargetStyleClass()
Test if the peer needs the :focus-target stype class injected for click-to-edit.
protected Object
NeedsSpuriousDirtyValueTracking()
Determines whether we should manually track the peer's input value in order to work around problems with Selenium RC failing to properly simulate DOM events.
protected Object
RunValidation(Object component, Object targetNode, Object isChangeRequired)
Don't call this code unless the input element is the content node
protected Object
ShouldShowHint(Object component, Object domElement)
Show hints in note window for this component.
Object
__simulateBlur(Object comp)
Simulates blur handling in cases when we know that the focus is lost, but onBlur is not yet called (such as when onbeforeunload is delivered)
protected Object
UpdateLastValue(Object component)
protected Object
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, HandleComponentKeyUp, HideNoteWindow, InitDomElement, IsInitialized, IsNoteWindowVisible, __isSpuriousDirtyValue, LazyInitialize, MessageNotify, MessageShow, __resetSpuriousDirtyValue, ShowNoteWindow, ShowNoteWindowMouseOver, StashOldValue, Validate, ValidateAndStashNewValue, ValidateIfStashedOldValue, VetoShowNoteWindow, WasSubmitted


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

ComponentValueChanged, getConvertedObject, getConvertedValue, getFormatHint, GetNullDefault, GetSubIdDomElement, isEmpty, setDisplayValue, SetDisplayValue


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

addComponentEventHandlers, addComponentPropertyChanges, addComponentPropertyGetters, addDomEventHandlers, addEventHandlerToDomInstance, addSuppressedPPRAttributes, applyDragReadyState, ApplyDragReadyState, applyDragSourceState, ApplyDragSourceState, bind, 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, 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, hideAllPopups, hidePopup, InitClass, initialize, isActive, isBusy, 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, 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


_LAST_VALUE

private static Object _LAST_VALUE

Constructor Detail


AdfDhtmlInputBasePeer

public AdfDhtmlInputBasePeer()

Base Peer for the input components.

Method Detail


GetSubmittedValue

protected Object GetSubmittedValue(Object component,
                                   Object domElement)

Returns the submittedValue by getting the value of the input dom node.

Parameters:
component  -  Component that this peer will be associated with
domElement  -  Root DOM element of this peer
Return:
Object - submittedValue
Overrides:
AdfDhtmlEditableValuePeer.GetSubmittedValue(Object, Object)

HandleComponentBlur

protected Object HandleComponentBlur(Object componentEvent)

Parameters:
componentEvent    
Return:
Object

HandleComponentFocus

protected Object HandleComponentFocus(Object componentEvent)

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

InitSubclass

protected static Object InitSubclass()

Return:
Object
Overrides:
AdfDhtmlValuePeer.InitSubclass()

needsFocusTargetStyleClass

public Object needsFocusTargetStyleClass()

Test if the peer needs the :focus-target stype class injected for click-to-edit. Rather then inject this for all UI components, we're only going to inject it for peers that need it due to an IE7/rtl bug when injecting style classes onto dom elements. Default is false (don't inject the style).

Return:
Object
Overrides:
AdfRichUIPeer.needsFocusTargetStyleClass()

NeedsSpuriousDirtyValueTracking

protected Object NeedsSpuriousDirtyValueTracking()

Determines whether we should manually track the peer's input value in order to work around problems with Selenium RC failing to properly simulate DOM events. If this method is overridden to return true, AdfDhtmlEditableValuePeer will store the component's submitted value during InitDomElement() and will use this to determine whether the value we've got a "spurious" dirty value when "#__isSpuriousValue()" is called. This method should be overridden to return by any subclass that may be tripped up by Selenium RC's failure to properly simulate DOM events. See AdfDirtyStateService for more details.

Return:
Object
Overrides:
AdfDhtmlEditableValuePeer.NeedsSpuriousDirtyValueTracking()

RunValidation

protected Object RunValidation(Object component,
                               Object targetNode,
                               Object isChangeRequired)

Don't call this code unless the input element is the content node

Parameters:
component  -  Component
targetNode  -  targetNode of event
isChangeRequired    
Return:
Object

ShouldShowHint

protected Object ShouldShowHint(Object component,
                                Object domElement)

Show hints in note window for this component.

Parameters:
component    
domElement    
Return:
Object
Overrides:
AdfDhtmlEditableValuePeer.ShouldShowHint(Object, Object)

__simulateBlur

Object __simulateBlur(Object comp)

Simulates blur handling in cases when we know that the focus is lost, but onBlur is not yet called (such as when onbeforeunload is delivered)

Parameters:
comp    
Return:
Object

UpdateLastValue

protected Object UpdateLastValue(Object component)

Parameters:
component    
Return:
Object

VetoBlurValidation

protected Object VetoBlurValidation()

Return:
Object

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

 

Generated on 2014.03.27 12:59 UTC
Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.