OracleJavaScript API Reference for Oracle ADF Faces

 

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

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

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.AdfDhtmlPanelBoxPeer
                           |
                           +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlRegionPeer

public class AdfDhtmlRegionPeer
extends AdfDhtmlPanelBoxPeer
Peer for a Region.



Field Summary

private static Object
_HEADER_PREFIX
private static Object
_INNER_MAXIMIZE_PEER
private static Object
_INNER_SD_PEER
private Object
_setUncommittedDataWarning
private static Object
_SUB_ID_MAP
region component publishes the following sub ids [External Subid --> Internal Client SubId]:- 1.


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

DISCLOSURE_SUB_ID, MAXIMIZE_SUB_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
AdfDhtmlRegionPeer()
Peer for a Region.


Method Summary

public Object
componentRemoved(Object component)
Clean up the peer because it's component is being removed.
protected Object
ConvertClientIdToLocator(Object component, Object childComponent, Object descComponentClientId, Object replaceArray)
Function to replace client id fragments when converting a clientId to an absolute locator.
protected Object
CreateDisclosurePeer(Object component)
Hook point for subclasses (like the RegionPeer) to override the inner disclosure peer creation
protected Object
CreateMaximizePeer(Object component)
Hook point for subclasses (like the RegionPeer) to override the inner maximize peer creation
protected HTMLElement
DomReplaceNotify(HTMLElement replacedDomNode)
Handles child dom replacement after PPR activity.
protected Object
GetAnimationDuration()
Return the animation duration.
public Object
getAnimationDurationKey()
protected Object
GetBestMatchSubId(Object domElement)
Returns the best match subId for the given domElement.
protected Object
GetContentDomElement(Object rootElement)
Returns the DOM element used for the Region content.
private static HTMLElement
_getOnlyChildElement(HTMLElement parentElement)
Returns the only child element underneath the specified parent, or null if the parent has zero or more than one child element.
protected Object
GetSubIdDomElement(Object subElementId)
Returns the DOM element identified by the passed in subId.
protected Object
InitDirtyTracking()
protected Object
InitDomElement(Object component, Object domElement)
Register DOM event handlers.
private Object
_isRegionStretched(HTMLElement regionElement)
Retreives whether the region itself is stretched.
private Object
_setUncommittedDataWarning(Object component)
private Object
_stretchOnlyChild(HTMLElement regionElement, HTMLElement onlyChild)
Apply styles that allow stretching of the height of the given child to work properly.
protected Object
TruncateClientId(Object component, Object descendantComponent, Object childClientId, Object skipArray)
Remove the first id fragment after the region id when creating absolute scoped ids


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

ComponentDisclosedChanged, ComponentMaximizedChanged, DispatchUncanceledComponentEvent, getDefaultDragRecognizer, __handleClientSideDisclosure, __handleClientSideMaximize, HandleComponentClick, HandleComponentDisclosure, HandleComponentKeyUp, HandleComponentMaximize, Init, initialize, InitSubclass, __isEventForHeaderControls


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, ComponentStyleClassChanged, ComponentVisibleChanged, convertLocatorToClientId, createComponentEvent, CreateComponentEvent, CreateDraggableNode, createInnerPeerClassWithSubId, createPeerClass, createSubId, DefaultInitClass, descendantMessageChanged, DescendantMessageChanged, DispatchComponentEvent, 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, getFallbackDomElement, GetFallbackDomElement, getFirstAncestorComponent, GetImgNodeToReplaceWithSVG, getInlineEditor, GetInlineEditor, getInlineStyleProperty, getLocatorByDomElement, getPagePosition, getPopupWindow, getReadyState, GetReadyState, GetRichResourceURL, getSubIdDomElement, hideAllPopups, hidePopup, InitClass, 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, TruncateClientIdOnceImpl, UnbindFromComponent, unregisterKeyStroke, visitChildren


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

getParentPeer, 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


_HEADER_PREFIX

private static Object _HEADER_PREFIX

_INNER_MAXIMIZE_PEER

private static Object _INNER_MAXIMIZE_PEER

Overrides:
AdfDhtmlPanelBoxPeer._INNER_MAXIMIZE_PEER

_INNER_SD_PEER

private static Object _INNER_SD_PEER

Overrides:
AdfDhtmlPanelBoxPeer._INNER_SD_PEER

_setUncommittedDataWarning

private Object _setUncommittedDataWarning

_SUB_ID_MAP

private static Object _SUB_ID_MAP

region component publishes the following sub ids [External Subid --> Internal Client SubId]:- 1. [disclosure_icon --> _afrDscl] - the disclosure icon 2. [content --> content] - region content 3. [title] - the title (mapped programmatically) Example of the usage of the subids for region: r1:pt1:table1[0] Note that for regions the number ahead of the region id (r1:2:pt1:table1[0]) needs to be removed for it to work correctly. Note that "title" does not have a corresponding ID to map to. Instead it is determined programmatically in AdfDhtmlRegionPeer.GetSubIdDomElement().

Overrides:
AdfDhtmlPanelBoxPeer._SUB_ID_MAP

Constructor Detail


AdfDhtmlRegionPeer

public AdfDhtmlRegionPeer()

Peer for a Region.

Method Detail


componentRemoved

public Object componentRemoved(Object component)

Clean up the peer because it's component is being removed.

Parameters:
component    
Return:
Object
Overrides:
AdfUIPeer.componentRemoved(AdfUIComponent)

ConvertClientIdToLocator

protected Object ConvertClientIdToLocator(Object component,
                                          Object childComponent,
                                          Object descComponentClientId,
                                          Object replaceArray)

Function to replace client id fragments when converting a clientId to an absolute locator. Remove the first id fragment, which is the extra naming container level after the region id while creating absolute locator.

The peer is not bound when this method is called


Parameters:
component  -  The region component for this peer
childComponent    
descComponentClientId  -  The clientId of the component that the absolute scoped id is being generated for
replaceArray  -  Array of key-value array in format [<index>, <item>] to either skip or skip and fix the parent id fragment with the item value
Return:
Object
Overrides:
AdfRichUIPeer.ConvertClientIdToLocator(Object, Object, Object, Object)

CreateDisclosurePeer

protected Object CreateDisclosurePeer(Object component)

Hook point for subclasses (like the RegionPeer) to override the inner disclosure peer creation

Parameters:
component    
Return:
Object
Overrides:
AdfDhtmlPanelBoxPeer.CreateDisclosurePeer(Object)

CreateMaximizePeer

protected Object CreateMaximizePeer(Object component)

Hook point for subclasses (like the RegionPeer) to override the inner maximize peer creation

Parameters:
component    
Return:
Object
Overrides:
AdfDhtmlPanelBoxPeer.CreateMaximizePeer(Object)

DomReplaceNotify

protected HTMLElement DomReplaceNotify(HTMLElement replacedDomNode)

Handles child dom replacement after PPR activity.

Parameters:
replacedDomNode  -  the new DOM element
Return:
HTMLElement - the element at which the resize notify traversal will start
Overrides:
AdfRichUIPeer.domReplaceNotify(AdfUIComponent, Object)

GetAnimationDuration

protected Object GetAnimationDuration()

Return the animation duration. Override if needed.

Return:
Object
Overrides:
AdfDhtmlPanelBoxPeer.GetAnimationDuration()

getAnimationDurationKey

public Object getAnimationDurationKey()

Return:
Object

GetBestMatchSubId

protected Object GetBestMatchSubId(Object domElement)

Returns the best match subId for the given domElement. This can be enhanced further to return programmatically determined subIds. WARNING - You must make sure to bind the component to the peer before calling this function.

Parameters:
domElement    
Return:
Object
See also:
AdfRichUIPeer.GetSubIdDomElement(Object)
Overrides:
AdfRichUIPeer.GetBestMatchSubId(Object)

GetContentDomElement

protected Object GetContentDomElement(Object rootElement)

Returns the DOM element used for the Region content. The optional rootElement allows this to be called from InitDomElement.

Parameters:
rootElement    
Return:
Object
Overrides:
AdfDhtmlPanelBoxPeer.GetContentDomElement(Object)

_getOnlyChildElement

private static HTMLElement _getOnlyChildElement(HTMLElement parentElement)

Returns the only child element underneath the specified parent, or null if the parent has zero or more than one child element. This function differs from AdfDomUtils.getOnlyChildElement in that it will dig inside of wrapper divs that the region renderer may introduce. The parentElement may have children that have their own wrappers. We need to look inside of these wrappers and treat those children as if they were direct children of the parentElement.

Parameters:
parentElement  -  the node whose children we want to retrieve the sole child from
Return:
HTMLElement - the only child element or null if 0 or more than 1 displayed child is found

GetSubIdDomElement

protected Object GetSubIdDomElement(Object subElementId)

Returns the DOM element identified by the passed in subId.

Parameters:
subElementId    
Return:
Object - the DOM element
Overrides:
AdfRichUIPeer.getSubIdDomElement(Object, Object)

InitDirtyTracking

protected Object InitDirtyTracking()

Return:
Object

InitDomElement

protected Object InitDomElement(Object component,
                                Object domElement)

Register DOM event handlers.

Parameters:
component    
domElement    
Return:
Object
Overrides:
AdfRichUIPeer.InitDomElement(AdfUIComponent, Object)

_isRegionStretched

private Object _isRegionStretched(HTMLElement regionElement)

Retreives whether the region itself is stretched.

Parameters:
regionElement  -  the root DOM element of this region
Return:
Object

_setUncommittedDataWarning

private Object _setUncommittedDataWarning(Object component)

Parameters:
component    
Return:
Object

_stretchOnlyChild

private Object _stretchOnlyChild(HTMLElement regionElement,
                                 HTMLElement onlyChild)

Apply styles that allow stretching of the height of the given child to work properly.

Parameters:
regionElement  -  the root DOM element of this region
onlyChild  -  the child DOM element of this region to stretch
Return:
Object

TruncateClientId

protected Object TruncateClientId(Object component,
                                  Object descendantComponent,
                                  Object childClientId,
                                  Object skipArray)

Remove the first id fragment after the region id when creating absolute scoped ids

Parameters:
component    
descendantComponent    
childClientId    
skipArray    
Return:
Object
Overrides:
AdfRichUIPeer.TruncateClientId(Object, Object, Object, Object)

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

 

Generated on 2017.04.19 06:37 UTC
Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.